diff options
author | Gerd Moellmann <gerd@gnu.org> | 2001-02-13 15:14:22 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2001-02-13 15:14:22 +0000 |
commit | 7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8 (patch) | |
tree | 34b53c3abc4ec9952297f82a6c967dd29e9dfbb2 /src/dired.c | |
parent | e9fcba3d594a4cc5f3b59ed88011c1d74529cce3 (diff) | |
download | emacs-7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8.tar.gz |
(directory_files_internal): Initialize errno.
(toplevel): Include errno.h.
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. */ #include <sys/stat.h> #include "systime.h" +#include <errno.h> #ifdef VMS #include <string.h> @@ -208,6 +209,7 @@ directory_files_internal (directory, full, match, nosort, attrs) #endif /* not VMS */ /* Loop reading blocks until EOF or error. */ + errno = 0; while ((dp = readdir (d)) != NULL) { if (DIRENTRY_NONEMPTY (dp)) |