From 286e7622b8ceaf93e1900255f311fbe56dfc0a62 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 30 May 2022 13:43:51 +1000 Subject: [PATCH] [client] main: fix failure to startup when the guest VM has no UUID --- client/src/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 2154ad11..5a422f15 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -877,16 +877,16 @@ void spiceReady(void) break; } - if (!uuidValid) - return; - - memcpy(g_state.spiceUUID, info.uuid, sizeof(g_state.spiceUUID)); - checkUUID(); + if (uuidValid) + { + memcpy(g_state.spiceUUID, info.uuid, sizeof(g_state.spiceUUID)); + checkUUID(); + } + purespice_freeServerInfo(&info); if (g_params.useSpiceInput) keybind_spiceRegister(); - purespice_freeServerInfo(&info); lgSignalEvent(e_spice); }