Mercurial > emacs
changeset 36064:b063eac9a89d
(directory_files_internal): Initialize errno.
(toplevel): Include errno.h.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 13 Feb 2001 15:13:54 +0000 |
parents | 3d71d3074f86 |
children | 117b2d7dad42 |
files | src/dired.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dired.c Tue Feb 13 09:02:36 2001 +0000 +++ b/src/dired.c Tue Feb 13 15:13:54 2001 +0000 @@ -27,6 +27,7 @@ #include <sys/stat.h> #include "systime.h" +#include <errno.h> #ifdef VMS #include <string.h> @@ -208,6 +209,7 @@ #endif /* not VMS */ /* Loop reading blocks until EOF or error. */ + errno = 0; while ((dp = readdir (d)) != NULL) { if (DIRENTRY_NONEMPTY (dp))