aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-25 20:27:04 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-25 20:27:04 +0000
commita39437aa1dd5331c802294b9455503f9c8585180 (patch)
treee5f185665619f58d40face4283023deda528467b
parented5065e16a4717414c9ca1f2286903de0e663b2c (diff)
Fix segfault with -nographic, by Enache Adrian.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2538 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index b2b49e73f1..eb5d70750d 100644
--- a/vl.c
+++ b/vl.c
@@ -7079,6 +7079,7 @@ int main(int argc, char **argv)
break;
case QEMU_OPTION_nographic:
pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio");
+ pstrcpy(parallel_devices[0], sizeof(parallel_devices[0]), "null");
pstrcpy(monitor_device, sizeof(monitor_device), "stdio");
nographic = 1;
break;