mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06: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
1 changed files with 3 additions and 0 deletions
|
@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (!type) {
|
||||
return;
|
||||
}
|
||||
if (module_loaded_qom_all) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue