diff options
author | Brendan Shanks <bshanks@codeweavers.com> | 2019-07-12 10:46:10 -0700 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2019-07-15 09:08:06 +0100 |
commit | 1e489eefa9e5e63cf4b45ef751f1d36b8a50617c (patch) | |
tree | 5cbb4714bcf22b5899a2bb5456c147bc8d532be4 | |
parent | c0f362575476704179aebbc9a9cfc5e5ea7e8e00 (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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 **----------------------------------------------------------------------*/ |