summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1f9780)
raw | patch | inline | side by side (parent: a1f9780)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 16 Apr 2016 11:54:16 +0000 (13:54 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 16 Apr 2016 11:59:47 +0000 (13:59 +0200) |
Found with coccinelle
src/virt.c | patch | blob | history |
diff --git a/src/virt.c b/src/virt.c
index bbf5afc79bbac7a6c2db3605d75174ea07b6797d..e5a8725381d2cf56a7e3e4ea01ddff6481276d82 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
/* Get list of domains. */
domids = malloc (sizeof (*domids) * n);
- if (domids == 0) {
+ if (domids == NULL) {
ERROR (PLUGIN_NAME " plugin: malloc failed.");
return -1;
}