提交 75f30a60 编写于 作者: M Martin Kletzander

tests: Properly dereference cpus pointer in virnumamock.c

Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 df6551fe
......@@ -181,7 +181,7 @@ virNumaGetNodeCPUs(int node, virBitmapPtr *cpus)
return -1;
*cpus = virBitmapParseUnlimited(cpulist);
if (!cpus)
if (!*cpus)
goto cleanup;
ret = virBitmapCountBits(*cpus);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册