diff options
author | Alon Levy <alevy@redhat.com> | 2011-10-04 13:25:53 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-10-25 14:00:54 +0200 |
commit | 3bb781f3ed91bd3f085ded4d16f089e7b66f1076 (patch) | |
tree | 46c5d506d3a991220bac55f5b61a736dfe64d46e /ui/spice-core.c | |
parent | 4ec8d3077b799fcdd9fe0f38e432791c8fceb88e (diff) |
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: Alon Levy <alevy@redhat.com>
Diffstat (limited to 'ui/spice-core.c')
-rw-r--r-- | 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 4c06c36c31..be52356e63 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -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; } |