aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-07-20 12:03:51 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-07-21 10:56:51 +0200
commitd87350b065128e8156e7aca93e89a1ab9e5fa63d (patch)
tree8d6334745b6a7bbdab45a2a3cc2a83bc95391090 /util
parentd97df4b84bc42613cf9a03619de453ebd0be30b7 (diff)
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>
Diffstat (limited to 'util')
-rw-r--r--util/module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/module.c b/util/module.c
index 90e9bd42c6..0ab00851f0 100644
--- a/util/module.c
+++ b/util/module.c
@@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
{
int i;
+ if (!type) {
+ return;
+ }
if (module_loaded_qom_all) {
return;
}