aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lread.c b/src/lread.c
index 7f8711aa5e9..904083c4396 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -900,9 +900,12 @@ openp (path, str, suffix, storeptr, exec_only)
900 int want_size; 900 int want_size;
901 Lisp_Object filename; 901 Lisp_Object filename;
902 struct stat st; 902 struct stat st;
903 struct gcpro gcpro1; 903 struct gcpro gcpro1, gcpro2;
904 Lisp_Object string;
904 905
905 GCPRO1 (str); 906 string = Qnil;
907 GCPRO2 (str, string);
908
906 if (storeptr) 909 if (storeptr)
907 *storeptr = Qnil; 910 *storeptr = Qnil;
908 911
@@ -967,7 +970,6 @@ openp (path, str, suffix, storeptr, exec_only)
967 handler = Ffind_file_name_handler (filename, Qfile_exists_p); 970 handler = Ffind_file_name_handler (filename, Qfile_exists_p);
968 if (! NILP (handler) && ! exec_only) 971 if (! NILP (handler) && ! exec_only)
969 { 972 {
970 Lisp_Object string;
971 int exists; 973 int exists;
972 974
973 string = build_string (fn); 975 string = build_string (fn);