Commit 7a8d465a authored by Eli Zaretskii's avatar Eli Zaretskii

(file_name_completion): Fix last change.

parent 30743573
......@@ -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] != '/')
......
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