From 75f30a60e6c33cd70dd1532d9da5a3a4963ce2d3 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Mon, 27 Mar 2017 15:47:58 +0200 Subject: [PATCH] tests: Properly dereference cpus pointer in virnumamock.c Signed-off-by: Martin Kletzander --- tests/virnumamock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/virnumamock.c b/tests/virnumamock.c index 89e420fa41..210d15d6ad 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); -- GitLab