From: Aurelien Reynaud Date: Wed, 12 May 2010 09:55:04 +0000 (+0200) Subject: processes.c: fix uninitialized variables warnings X-Git-Tag: collectd-4.9.3~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26a6b8ecff2bd8dd700805e39fec5bb2834ebcef;p=collectd.git processes.c: fix uninitialized variables warnings Signed-off-by: Aurelien Reynaud Signed-off-by: Florian Forster --- diff --git a/src/processes.c b/src/processes.c index f2eb0a34..670aa8d7 100644 --- a/src/processes.c +++ b/src/processes.c @@ -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) */