Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ace46dfe
Commit
ace46dfe
authored
Aug 29, 2000
by
Gerd Moellmann
Browse files
(openp): Prevent temporary string passed to
Ffile_readable_p from being garbage collected.
parent
7bc3ff79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/lread.c
src/lread.c
+5
-3
No files found.
src/lread.c
View file @
ace46dfe
...
...
@@ -900,9 +900,12 @@ openp (path, str, suffix, storeptr, exec_only)
int
want_size
;
Lisp_Object
filename
;
struct
stat
st
;
struct
gcpro
gcpro1
;
struct
gcpro
gcpro1
,
gcpro2
;
Lisp_Object
string
;
GCPRO1
(
str
);
string
=
Qnil
;
GCPRO2
(
str
,
string
);
if
(
storeptr
)
*
storeptr
=
Qnil
;
...
...
@@ -967,7 +970,6 @@ openp (path, str, suffix, storeptr, exec_only)
handler
=
Ffind_file_name_handler
(
filename
,
Qfile_exists_p
);
if
(
!
NILP
(
handler
)
&&
!
exec_only
)
{
Lisp_Object
string
;
int
exists
;
string
=
build_string
(
fn
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment