aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index d07e62a1212..9697f6c8cf1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2601,9 +2601,9 @@ is case-insensitive. */)
2601 if (err <= 0) 2601 if (err <= 0)
2602 return err < 0 ? Qt : Qnil; 2602 return err < 0 ? Qt : Qnil;
2603 Lisp_Object parent = file_name_directory (filename); 2603 Lisp_Object parent = file_name_directory (filename);
2604 /* Avoid infinite loop if the root has trouble 2604 /* Avoid infinite loop if the root has trouble (if that's even possible).
2605 (impossible?). */ 2605 Without a parent, we just don't know and return nil as well. */
2606 if (!NILP (Fstring_equal (parent, filename))) 2606 if (!STRINGP (parent) || !NILP (Fstring_equal (parent, filename)))
2607 return Qnil; 2607 return Qnil;
2608 filename = parent; 2608 filename = parent;
2609 } 2609 }