mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 22:03:49 +03:00
qemusecuritymock: init_hash: virHashNew
cannot return NULL
Signed-off-by: Tim Wiederhake <twiederh@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
69e2426b83
commit
3ae0c7715e
@ -100,20 +100,9 @@ init_hash(void)
|
|||||||
if (xattr_paths)
|
if (xattr_paths)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!(xattr_paths = virHashNew(g_free))) {
|
xattr_paths = virHashNew(g_free);
|
||||||
fprintf(stderr, "Unable to create hash table for XATTR paths\n");
|
chown_paths = virHashNew(g_free);
|
||||||
abort();
|
selinux_paths = virHashNew(g_free);
|
||||||
}
|
|
||||||
|
|
||||||
if (!(chown_paths = virHashNew(g_free))) {
|
|
||||||
fprintf(stderr, "Unable to create hash table for chowned paths\n");
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(selinux_paths = virHashNew(g_free))) {
|
|
||||||
fprintf(stderr, "Unable to create hash table for selinux labels\n");
|
|
||||||
abort();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user