vnc: fix segfault
commitbee1b01083b6adcf580fa30e65a2e59e7231af31
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Apr 2009 15:24:51 +0000 (27 17:24 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 May 2009 14:44:10 +0000 (1 09:44 -0500)
tree03c823c5f8cfc35f80d8ef9e0abfb8d6ba4eadd6
parent206ab6e090eeddce71372041454d50d93a63017d
vnc: fix segfault

Move down cmp_bytes initialization.  Must be after vga_hw_update()
call, because that one might change the screen depth.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc.c