[collectd] [PATCH 1/2] processes.c: fix uninitialized variables warnings
Aurelien Reynaud
collectd at wattapower.net
Wed May 12 11:55:04 CEST 2010
Signed-off-by: Aurelien Reynaud <collectd at wattapower.net>
---
src/processes.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/processes.c b/src/processes.c
index c642e58..8a3df64 100644
--- a/src/processes.c
+++ b/src/processes.c
@@ -1797,6 +1797,11 @@ static int ps_read (void)
pse.vmem_code = 0;
pse.stack_size = 0;
+ pse.io_rchar = -1;
+ pse.io_wchar = -1;
+ pse.io_syscr = -1;
+ pse.io_syscw = -1;
+
ps_list_add (cmdline, cargs, &pse);
} /* for (i = 0 .. nprocs) */
--
1.7.1
More information about the collectd
mailing list