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

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