]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-edid.c
Merge tag 'pull-aspeed-20240201' of https://github.com/legoater/qemu into staging
[mirror_qemu.git] / qemu-edid.c
index 20c958d9c7eb627075ebe8982957ce01ce2b7950..92e1a660a76bae7cccb60811bbdd9a1c95918222 100644 (file)
@@ -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;