blob: 4ab07e32547a24c15c302c5f74376d850850118d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
diff -Naur qemu/util/qemu-option.c qemu2/util/qemu-option.c
--- qemu/util/qemu-option.c 2014-12-26 02:07:22.787822010 +0300
+++ qemu2/util/qemu-option.c 2014-12-26 02:06:50.000000000 +0300
@@ -384,7 +384,7 @@
}
return ret;
}
- assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL);
+// assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL);
ret = opt->value.boolean;
if (del) {
qemu_opt_del_all(opts, name);
@@ -420,7 +420,7 @@
}
return ret;
}
- assert(opt->desc && opt->desc->type == QEMU_OPT_NUMBER);
+// assert(opt->desc && opt->desc->type == QEMU_OPT_NUMBER);
ret = opt->value.uint;
if (del) {
qemu_opt_del_all(opts, name);
@@ -457,7 +457,7 @@
}
return ret;
}
- assert(opt->desc && opt->desc->type == QEMU_OPT_SIZE);
+// assert(opt->desc && opt->desc->type == QEMU_OPT_SIZE);
ret = opt->value.uint;
if (del) {
qemu_opt_del_all(opts, name);
|