projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
configure.ac: move AC_SUBST down to after define
[collectd.git]
/
src
/
virt.c
diff --git
a/src/virt.c
b/src/virt.c
index
79d4682
..
e5a8725
100644
(file)
--- a/
src/virt.c
+++ b/
src/virt.c
@@
-686,8
+686,8
@@
refresh_lists (void)
int *domids;
/* Get list of domains. */
- domids = malloc (sizeof (
int
) * n);
- if (domids ==
0
) {
+ domids = malloc (sizeof (
*domids
) * n);
+ if (domids ==
NULL
) {
ERROR (PLUGIN_NAME " plugin: malloc failed.");
return -1;
}