Commit 3bb781f3 authored by Alon Levy's avatar Alon Levy Committed by Gerd Hoffmann
Browse files

ui/spice-core: fix segfault in monitor



Fix segfault if a qxl device is present but no spice command line
argument is given.

RHBZ 743251.

Signed-off-by: default avatarAlon Levy <alevy@redhat.com>
parent 4ec8d307
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -445,7 +445,7 @@ void do_info_spice(Monitor *mon, QObject **ret_data)
    int port, tls_port;
    char version_string[20]; /* 12 = |255.255.255\0| is the max */

    if (!spice_server) {
    if (!spice_server || !opts) {
        *ret_data = qobject_from_jsonf("{ 'enabled': false }");
        return;
    }