changeset 3032:371058345c42

(Fread_file_name): If input is empty, do return the default even if !insert_default_directory.
author Richard M. Stallman <rms@gnu.org>
date Mon, 24 May 1993 21:09:38 +0000
parents 5c96dfc52433
children 8bf84289be17
files src/fileio.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Mon May 24 20:57:32 1993 +0000
+++ b/src/fileio.c	Mon May 24 21:09:38 1993 +0000
@@ -3232,6 +3232,8 @@
   tem = Fstring_equal (val, insdef);
   if (!NILP (tem) && !NILP (defalt))
     return defalt;
+  if (XSTRING (val)->size == 0 && NILP (insdef))
+    return defalt;
   return Fsubstitute_in_file_name (val);
 }