aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parente9fcba3d594a4cc5f3b59ed88011c1d74529cce3 (diff)
downloademacs-7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8.tar.gz
emacs-7cc9f69fd9764ed41fbcf8d11da8ec49dbf8c7c8.zip
(directory_files_internal): Initialize errno.
(toplevel): Include errno.h.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/dired.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d0217b2e975..b87ddc0da78 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-02-13 Gerd Moellmann <gerd@gnu.org>
2
3 * dired.c (directory_files_internal): Initialize errno.
4 (toplevel): Include errno.h.
5
12001-02-12 Andrew Innes <andrewi@gnu.org> 62001-02-12 Andrew Innes <andrewi@gnu.org>
2 7
3 The following changes are to draw box lines inside characters area 8 The following changes are to draw box lines inside characters area
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))