summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Shanks <bshanks@codeweavers.com>2019-07-12 10:46:10 -0700
committerFrediano Ziglio <fziglio@redhat.com>2019-07-15 09:08:06 +0100
commit1e489eefa9e5e63cf4b45ef751f1d36b8a50617c (patch)
tree5cbb4714bcf22b5899a2bb5456c147bc8d532be4
parentc0f362575476704179aebbc9a9cfc5e5ea7e8e00 (diff)
Fix hang when launching with invalid config
When launching with no config file or arguments, the "You must provide some authentication method" dialog appears. Clicking the Close button would hang the application and it would never quit. s->draw_command_in_progress was uninitialized, and flush_and_lock() would get stuck in an infinite loop waiting for it to be 0. Initialize the entire session struct to 0. Signed-off-by: Brendan Shanks <bshanks@codeweavers.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 5dde233..7f321af 100644
--- a/src/main.c
+++ b/src/main.c
@@ -63,6 +63,8 @@ int main(int argc, char *argv[])
int session_created = 0;
int session_started = 0;
+ memset(&session, 0, sizeof(session));
+
/*------------------------------------------------------------------------
** Parse arguments
**----------------------------------------------------------------------*/