Commit a39437aa1dd5331c802294b9455503f9c8585180

Authored by ths
1 parent ed5065e1

Fix segfault with -nographic, by Enache Adrian.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2538 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
... ... @@ -7079,6 +7079,7 @@ int main(int argc, char **argv)
7079 7079 break;
7080 7080 case QEMU_OPTION_nographic:
7081 7081 pstrcpy(serial_devices[0], sizeof(serial_devices[0]), "stdio");
  7082 + pstrcpy(parallel_devices[0], sizeof(parallel_devices[0]), "null");
7082 7083 pstrcpy(monitor_device, sizeof(monitor_device), "stdio");
7083 7084 nographic = 1;
7084 7085 break;
... ...