]> git.proxmox.com Git - mirror_qemu.git/commit - ui/gtk.c
gtk: Don't crash if -nodefaults
authorFam Zheng <famz@redhat.com>
Fri, 21 Nov 2014 01:59:09 +0000 (09:59 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 21 Nov 2014 07:37:59 +0000 (08:37 +0100)
commitb310a2a6095ec927a42cc1aba520a316be0faf51
treed57daeed231b0c39f116512d90a3b36179e20859
parent8a0f9b5263bb3a96d574ca78ad3b8f1d7bf8b12b
gtk: Don't crash if -nodefaults

This fixes a crash by just skipping the vte resize hack if cur is NULL.

Reproducer:

qemu-system-x86_64 -nodefaults

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/gtk.c