diff options
Diffstat (limited to 'src/dired.c')
| -rw-r--r-- | src/dired.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dired.c b/src/dired.c index 4994241c2cf..f3f13534a87 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 27 | #include <sys/stat.h> | 27 | #include <sys/stat.h> |
| 28 | 28 | ||
| 29 | #include "systime.h" | 29 | #include "systime.h" |
| 30 | #include <errno.h> | ||
| 30 | 31 | ||
| 31 | #ifdef VMS | 32 | #ifdef VMS |
| 32 | #include <string.h> | 33 | #include <string.h> |
| @@ -208,6 +209,7 @@ directory_files_internal (directory, full, match, nosort, attrs) | |||
| 208 | #endif /* not VMS */ | 209 | #endif /* not VMS */ |
| 209 | 210 | ||
| 210 | /* Loop reading blocks until EOF or error. */ | 211 | /* Loop reading blocks until EOF or error. */ |
| 212 | errno = 0; | ||
| 211 | while ((dp = readdir (d)) != NULL) | 213 | while ((dp = readdir (d)) != NULL) |
| 212 | { | 214 | { |
| 213 | if (DIRENTRY_NONEMPTY (dp)) | 215 | if (DIRENTRY_NONEMPTY (dp)) |