OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
plugins: update lockstep to use g_memdup2
[qmiga/qemu.git]
/
qemu-edid.c
diff --git
a/qemu-edid.c
b/qemu-edid.c
index
20c958d
..
92e1a66
100644
(file)
--- a/
qemu-edid.c
+++ b/
qemu-edid.c
@@
-92,6
+92,10
@@
int main(int argc, char *argv[])
fprintf(stderr, "not a number: %s\n", optarg);
exit(1);
}
+ if (dpi == 0) {
+ fprintf(stderr, "cannot be zero: %s\n", optarg);
+ exit(1);
+ }
break;
case 'v':
info.vendor = optarg;