handle some uninitialized variables

This commit is contained in:
Wim Taymans 2023-03-16 12:29:15 +01:00
parent 167681104b
commit 98a214891d
2 changed files with 5 additions and 3 deletions

View file

@ -552,7 +552,7 @@ stop:
static void sco_on_flush_timeout(struct spa_source *source)
{
struct impl *this = source->data;
uint64_t exp;
uint64_t exp = 0;
int res;
spa_log_trace(this->log, "%p: flush on timeout", this);

View file

@ -2336,8 +2336,10 @@ int main(int argc, char *argv[])
fprintf(stderr, "Error: \"%s\"\n", error);
free(error);
}
if (data.current != NULL)
data.current->prompt_pending = pw_core_sync(data.current->core, 0, 0);
while (!data.quit && data.current) {
while (!data.quit && data.current != NULL) {
pw_main_loop_run(data.loop);
if (!monitor)
break;