projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d2db0
)
console: fix -vga none -sdl crash
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 2 Jun 2014 12:07:18 +0000
(14:07 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 10 Jun 2014 10:36:36 +0000
(12:36 +0200)
Call get_alloc_displaystate() for proper initialization
instead of allocating with g_new().
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c
patch
|
blob
|
history
diff --git
a/ui/console.c
b/ui/console.c
index b5dac64125cafdef54e8ccee16a0f0d57b559be4..7dc4c1414ce5582ea5cf4758e0537a431934b072 100644
(file)
--- a/
ui/console.c
+++ b/
ui/console.c
@@
-1580,10
+1580,7
@@
DisplayState *init_displaystate(void)
gchar *name;
int i;
- if (!display_state) {
- display_state = g_new0(DisplayState, 1);
- }
-
+ get_alloc_displaystate();
for (i = 0; i < nb_consoles; i++) {
if (consoles[i]->console_type != GRAPHIC_CONSOLE &&
consoles[i]->ds == NULL) {