projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d4ef8a
)
Make flow more obvious
author
Dagobert Michelsen
<dam@opencsw.org>
Thu, 28 May 2015 12:02:16 +0000
(14:02 +0200)
committer
Dagobert Michelsen
<dam@opencsw.org>
Thu, 28 May 2015 12:02:16 +0000
(14:02 +0200)
src/zone.c
patch
|
blob
|
history
diff --git
a/src/zone.c
b/src/zone.c
index
b8cc919
..
cb3869d
100644
(file)
--- 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;