mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
@@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!type) {
|
||||
return;
|
||||
}
|
||||
if (module_loaded_qom_all) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user