processes.c: fix uninitialized variables warnings
authorAurelien Reynaud <collectd@wattapower.net>
Wed, 12 May 2010 09:55:04 +0000 (11:55 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 19 May 2010 10:29:40 +0000 (12:29 +0200)
Signed-off-by: Aurelien Reynaud <collectd@wattapower.net>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/processes.c

index f2eb0a3..670aa8d 100644 (file)
@@ -1690,6 +1690,11 @@ static int ps_read (void)
                        pse.vmem_rss = (procentry[i].pi_drss + procentry[i].pi_trss) * pagesize;
                        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) */