From: Dagobert Michelsen Date: Thu, 28 May 2015 12:02:16 +0000 (+0200) Subject: Make flow more obvious X-Git-Tag: collectd-5.6.0~709^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0e8adc990989f23bff5fe62e9e0b1e12a494935a;p=collectd.git Make flow more obvious --- diff --git a/src/zone.c b/src/zone.c index b8cc9197..cb3869d6 100644 --- a/src/zone.c +++ b/src/zone.c @@ -155,7 +155,8 @@ zone_scandir(DIR *procdir) return(NULL); } - for (rewinddir(procdir); (direntp = readdir(procdir)); ) { + rewinddir(procdir); + while ((direntp = readdir(procdir))) { pidstr = direntp->d_name; if (pidstr[0] == '.') /* skip "." and ".." */ continue;