diff --git a/tests/virnumamock.c b/tests/virnumamock.c index 89e420fa4173acdabf3c37219dbc07e4df7c8773..210d15d6adf08c07a726e4c4a663e49dc1317c21 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);