gtk: fix uninitialized temporary VirtualConsole
Hi,
UI patch queue with a single bugfix.
please pull,
Gerd
The following changes since commit c3bce9d5f986bc22b0692a8fa9d26ce6d304375c:
etraxfs_dma: Dont forward zero-length payload to clients (2016-02-20 00:17:48 +0100)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-ui-20160222-1
for you to fetch changes up to 327d83ba717c879f5640b41c15af3ce56a7922eb:
gtk: fix uninitialized temporary VirtualConsole (2016-02-22 08:38:42 +0100)
----------------------------------------------------------------
gtk: fix uninitialized temporary VirtualConsole
----------------------------------------------------------------
Paolo Bonzini (1):
gtk: fix uninitialized temporary VirtualConsole
ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
From: Paolo Bonzini <[email protected]>
Only the echo field is used in the temporary VirtualConsole, so the damage was limited. But still, if echo was incorrectly set to true, the result would be some puzzling output in VTE monitor and serial consoles.
Message-id: [email protected]
--- ui/gtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ui/gtk.c +1 -1
@@ -1613,7 +1613,7 @@ static CharDriverState *gd_vc_handler(ChardevVC *vc, Error **errp) chr->chr_set_echo = gd_vc_chr_set_echo;/* Temporary, until gd_vc_vte_init runs. */ - chr->opaque =g_new (VirtualConsole,1 ); + chr->opaque =g_new0 (VirtualConsole,1 );/* defer OPENED events until our vc is fully initialized */ chr->explicit_be_open = true;
Signature · 1 line
1.8.3.1
Peter Maydell
AppliedQuoted 17 lines · Gerd Hoffmann
Hi,
UI patch queue with a single bugfix.
please pull,
GerdThe following changes since commit
c3bce9d5f986bc22b0692a8fa9d26ce6d304375c:
etraxfs_dma: Dont forward zero-length payload to clients (2016-02-20 00:17:48 +0100)are available in the git repository at:
git://git.kraxel.org/qemutags/pull-ui-20160222-1for you to fetch changes up to
327d83ba717c879f5640b41c15af3ce56a7922eb:
Quoted 8 lines
gtk: fix uninitialized temporary VirtualConsole (2016-02-22 08:38:42 +0100)
----------------------------------------------------------------
gtk: fix uninitialized temporary VirtualConsole----------------------------------------------------------------
Paolo Bonzini (1):
gtk: fix uninitialized temporary VirtualConsole
Applied, thanks.
-- PMM