fdwalk should return 0 on an empty directory master
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Thu, 2 Apr 2009 08:23:12 +0000 (04:23 -0400)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Thu, 2 Apr 2009 08:23:12 +0000 (04:23 -0400)
sysdeps/unix/sysv/solaris2/kopensolaris-gnu/fdwalk.c

index 7a8ffad..a03d2c8 100644 (file)
@@ -25,7 +25,7 @@
 
 int fdwalk (int (*func)(void *, int), void *cd)
 {
-  int res;
+  int res = 0;
   DIR *dir;
 
   dir = opendir ("/proc/self/fd");