From 26a6b8ecff2bd8dd700805e39fec5bb2834ebcef Mon Sep 17 00:00:00 2001 From: Aurelien Reynaud Date: Wed, 12 May 2010 11:55:04 +0200 Subject: [PATCH] processes.c: fix uninitialized variables warnings Signed-off-by: Aurelien Reynaud Signed-off-by: Florian Forster --- src/processes.c | 5 +++++ 1 file changed, 5 insertions(+) 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) */ -- 2.30.2