mirror of
https://github.com/qemu/qemu.git
synced 2025-08-07 14:43:53 +00: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:
parent
d97df4b84b
commit
d87350b065
@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (!type) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (module_loaded_qom_all) {
|
if (module_loaded_qom_all) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user