aboutsummaryrefslogtreecommitdiffstats
path: root/src/dired.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-13 15:14:22 +0000
committerGerd Moellmann2001-02-13 15:14:22 +0000
commit7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8 (patch)
tree34b53c3abc4ec9952297f82a6c967dd29e9dfbb2 /src/dired.c
parente9fcba3d594a4cc5f3b59ed88011c1d74529cce3 (diff)
downloademacs-7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8.tar.gz
emacs-7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8.zip
(directory_files_internal): Initialize errno.
(toplevel): Include errno.h.
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c2
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))