Received: from eggs.gnu.org ([208.118.235.92]:47222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SB1E9-00013V-6N for qemu-devel@nongnu.org; Fri, 23 Mar 2012 05:56:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SB1E6-0002Wl-N8 for qemu-devel@nongnu.org; Fri, 23 Mar 2012 05:56:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SB1E6-0002WI-F2 for qemu-devel@nongnu.org; Fri, 23 Mar 2012 05:56:06 -0400 From: Gerd Hoffmann Date: Fri, 23 Mar 2012 10:12:20 +0100 Message-Id: <1332493940-19581-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] spice: fix spice_server_set_name call. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lee.essen@nowonline.co.uk, Gerd Hoffmann 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 --- 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