module: ignore NULL type

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>
This commit is contained in:
Gerd Hoffmann 2020-07-20 12:03:51 +02:00
parent d97df4b84b
commit d87350b065

View File

@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
{
int i;
if (!type) {
return;
}
if (module_loaded_qom_all) {
return;
}