summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/console.c b/console.c
index bc0c3497f5..1c94980e85 100644
--- a/console.c
+++ b/console.c
@@ -1334,7 +1334,8 @@ CharDriverState *text_console_init(DisplayState *ds, const char *p)
void qemu_console_resize(QEMUConsole *console, int width, int height)
{
- if (console->g_width != width || console->g_height != height) {
+ if (console->g_width != width || console->g_height != height
+ || !console->ds->data) {
console->g_width = width;
console->g_height = height;
if (active_console == console) {