From 0e8adc990989f23bff5fe62e9e0b1e12a494935a Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Thu, 28 May 2015 14:02:16 +0200 Subject: [PATCH] Make flow more obvious --- src/zone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.30.2