Blame qemu-Allow-to-leave-type-on-default-in-machine.patch

6ba478
--- qemu-kvm-0.15.0.old/vl.c	2011-08-09 13:40:29.000000000 +0100
6ba478
+++ qemu-kvm-0.15.0/vl.c	2011-08-18 16:38:51.487515037 +0100
6ba478
@@ -2718,7 +2718,10 @@
6ba478
                     fprintf(stderr, "parse error: %s\n", optarg);
6ba478
                     exit(1);
6ba478
                 }
6ba478
-                machine = machine_parse(qemu_opt_get(opts, "type"));
6ba478
+                optarg = qemu_opt_get(opts, "type");
6ba478
+                if (optarg) {
6ba478
+                    machine = machine_parse(optarg);
6ba478
+                }
6ba478
                 break;
6ba478
 	    case QEMU_OPTION_no_kvm:
6ba478
                 olist = qemu_find_opts("machine");