]> git.proxmox.com Git - mirror_qemu.git/commitdiff
module: ignore NULL type
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 20 Jul 2020 10:03:51 +0000 (12:03 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Jul 2020 08:56:51 +0000 (10:56 +0200)
Just return in case module_load_qom_one(NULL) is called.
vga_interface_available() can do that.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200720100352.2477-3-kraxel@redhat.com>

util/module.c

index 90e9bd42c6c739f6c1c32d80824460d6983476b9..0ab00851f0a4d7c701a181c5a1e6baed534434cd 100644 (file)
@@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
 {
     int i;
 
+    if (!type) {
+        return;
+    }
     if (module_loaded_qom_all) {
         return;
     }