diff src/dired.c @ 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 6e4d871d265d
children 809b31e54e13
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))