[PATCH 1/3] tests: Properly dereference cpus pointer in virnumamock.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux