From: Eli Zaretskii Date: Sat, 13 Oct 2001 12:21:36 +0000 (+0000) Subject: (file_name_completion): Fix last change. X-Git-Tag: ttn-vms-21-2-B4~19480 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7a8d465a3ac6e74bdf8dbfdb642520138cb39b25;p=emacs.git (file_name_completion): Fix last change. --- diff --git a/src/dired.c b/src/dired.c index 0952e6173b5..2dc13188b1e 100644 --- a/src/dired.c +++ b/src/dired.c @@ -570,7 +570,7 @@ file_name_completion (file, dirname, all_flag, ver_flag) if (!STRINGP (elt)) continue; elt_len = XSTRING (elt)->size - 1; /* -1 for trailing / */ - if (elt_len == 0) + if (elt_len <= 0) continue; p1 = XSTRING (elt)->data; if (p1[elt_len] != '/')