diff --git a/src/virt.c b/src/virt.c
index bbf5afc79bbac7a6c2db3605d75174ea07b6797d..16bb77b101505cdd592977736248be540148cf1d 100644 (file)
--- a/src/virt.c
+++ b/src/virt.c
continue;
}
- status = virDomainMemoryStats (domains[i], minfo, VIR_DOMAIN_MEMORY_STAT_NR, 0);
+ status = virDomainMemoryStats (domains[i], minfo, VIR_DOMAIN_MEMORY_STAT_NR, 0);
if (status < 0) {
ERROR ("virt plugin: virDomainMemoryStats failed with status %i.",
/* Get list of domains. */
domids = malloc (sizeof (*domids) * n);
- if (domids == 0) {
+ if (domids == NULL) {
ERROR (PLUGIN_NAME " plugin: malloc failed.");
return -1;
}