summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-02-16 09:55:39 +0000
committerGerd Moellmann <gerd@gnu.org>2001-02-16 09:55:39 +0000
commit76846b315db4183c4aeae6fd7be5223290700010 (patch)
tree5cd2222a95745c6ead86ba15de8103ec9158fce5 /src/dired.c
parent713f7b15b055e2da63cff72be48796c9dcafb198 (diff)
downloademacs-76846b315db4183c4aeae6fd7be5223290700010.tar.gz
(directory_files_internal): Set result list to nil
before retrying.
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dired.c b/src/dired.c
index f3f13534a87..ce2e5cb95b2 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -312,7 +312,10 @@ directory_files_internal (directory, full, match, nosort, attrs)
specpdl_ptr = specpdl + count;
if (retry_p)
- goto retry;
+ {
+ list = Qnil;
+ goto retry;
+ }
if (NILP (nosort))
list = Fsort (Fnreverse (list),