Commit 7cc9f69f authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(directory_files_internal): Initialize errno.

(toplevel): Include errno.h.
parent e9fcba3d
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> 2001-02-12 Andrew Innes <andrewi@gnu.org>
The following changes are to draw box lines inside characters area The following changes are to draw box lines inside characters area
......
...@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */
#include <sys/stat.h> #include <sys/stat.h>
#include "systime.h" #include "systime.h"
#include <errno.h>
#ifdef VMS #ifdef VMS
#include <string.h> #include <string.h>
...@@ -208,6 +209,7 @@ directory_files_internal (directory, full, match, nosort, attrs) ...@@ -208,6 +209,7 @@ directory_files_internal (directory, full, match, nosort, attrs)
#endif /* not VMS */ #endif /* not VMS */
/* Loop reading blocks until EOF or error. */ /* Loop reading blocks until EOF or error. */
errno = 0;
while ((dp = readdir (d)) != NULL) while ((dp = readdir (d)) != NULL)
{ {
if (DIRENTRY_NONEMPTY (dp)) if (DIRENTRY_NONEMPTY (dp))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment