[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] spice: fix spice_server_set_name call.
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH] spice: fix spice_server_set_name call. |
Date: |
Fri, 23 Mar 2012 10:12:20 +0100 |
spice_server_set_name can't handle the case of getting NULL passed in.
Add a check and pass in an empty string instead.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/spice-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ui/spice-core.c b/ui/spice-core.c
index a468524..50c2765 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -690,7 +690,7 @@ void qemu_spice_init(void)
qemu_opt_foreach(opts, add_channel, &tls_port, 0);
#if SPICE_SERVER_VERSION >= 0x000a02 /* 0.10.2 */
- spice_server_set_name(spice_server, qemu_name);
+ spice_server_set_name(spice_server, qemu_name ?: "");
spice_server_set_uuid(spice_server, qemu_uuid);
#endif
--
1.7.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] spice: fix spice_server_set_name call.,
Gerd Hoffmann <=