]> git.proxmox.com Git - qemu.git/blobdiff - console.c
net: Warn about "-net nic" options which were ignored
[qemu.git] / console.c
index 871c1d47b2d29a442436f595c3ed2b6fb04f316c..9c6addf8e44aa603b6f5c111637978e3f511ab29 100644 (file)
--- a/console.c
+++ b/console.c
@@ -180,7 +180,7 @@ void vga_hw_screen_dump(const char *filename)
     active_console = consoles[0];
     /* There is currently no way of specifying which screen we want to dump,
        so always dump the first one.  */
-    if (consoles[0]->hw_screen_dump)
+    if (consoles[0] && consoles[0]->hw_screen_dump)
         consoles[0]->hw_screen_dump(consoles[0]->hw, filename);
     active_console = previous_active_console;
 }