Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
tests/virnumamock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/virnumamock.c b/tests/virnumamock.c
index 89e420fa4173..210d15d6adf0 100644
--- a/tests/virnumamock.c
+++ b/tests/virnumamock.c
@@ -181,7 +181,7 @@ virNumaGetNodeCPUs(int node, virBitmapPtr *cpus)
return -1;
*cpus = virBitmapParseUnlimited(cpulist);
- if (!cpus)
+ if (!*cpus)
goto cleanup;
ret = virBitmapCountBits(*cpus);
--
2.12.1