diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-13 18:57:12 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-13 18:57:12 +0000 |
commit | 13412c9d2fce7c402e93a08177abdbc593208140 (patch) | |
tree | aee84e593bef224e78a06207eac4fbf3a834dbba /vnc.c | |
parent | f60d2728cc27cd1eb05ad1cde13dc41810963128 (diff) |
vnc: Fix crash on 'info vnc' after 'change vnc none'
vnc_state->display is set to NULL after "change vnc none" but vnc_state itself
is still valid.
(James Ko)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6010 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vnc.c')
-rw-r--r-- | vnc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -183,7 +183,7 @@ static VncState *vnc_state; /* needed for info vnc */ void do_info_vnc(void) { - if (vnc_state == NULL) + if (vnc_state == NULL || vnc_state->display == NULL) term_printf("VNC server disabled\n"); else { term_printf("VNC server active on: "); |