]> git.eshelyaron.com Git - emacs.git/commitdiff
(directory_files_internal): Initialize errno.
authorGerd Moellmann <gerd@gnu.org>
Tue, 13 Feb 2001 15:14:22 +0000 (15:14 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 13 Feb 2001 15:14:22 +0000 (15:14 +0000)
(toplevel): Include errno.h.

src/ChangeLog
src/dired.c

index d0217b2e9758d0ab284bb8d53a6fd8cac0aadc5d..b87ddc0da789a297a828539bdb2150e2545ea496 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-13  Gerd Moellmann  <gerd@gnu.org>
+
+       * dired.c (directory_files_internal): Initialize errno.
+       (toplevel): Include errno.h.
+
 2001-02-12  Andrew Innes  <andrewi@gnu.org>
 
        The following changes are to draw box lines inside characters area
index 4994241c2cf68ad4f259af0b8dc7500c705cf6cb..f3f13534a876231db5bd9d99f468b78a928b7be9 100644 (file)
@@ -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))