mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: Properly dereference cpus pointer in virnumamock.c
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
df6551feb4
commit
75f30a60e6
@ -181,7 +181,7 @@ virNumaGetNodeCPUs(int node, virBitmapPtr *cpus)
|
||||
return -1;
|
||||
|
||||
*cpus = virBitmapParseUnlimited(cpulist);
|
||||
if (!cpus)
|
||||
if (!*cpus)
|
||||
goto cleanup;
|
||||
|
||||
ret = virBitmapCountBits(*cpus);
|
||||
|
Loading…
x
Reference in New Issue
Block a user