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
d26859eb
Commit
d26859eb
authored
Sep 05, 1994
by
Karl Heuer
Browse files
(Ffile_accessible_directory_p): Put back the gcpro.
parent
76425a49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/fileio.c
src/fileio.c
+9
-2
No files found.
src/fileio.c
View file @
d26859eb
...
...
@@ -2383,6 +2383,7 @@ searchable directory.")
{
Lisp_Object
handler
;
int
tem
;
struct
gcpro
gcpro1
;
/* If the file name has special constructs in it,
call the corresponding file handler. */
...
...
@@ -2390,10 +2391,16 @@ searchable directory.")
if
(
!
NILP
(
handler
))
return
call2
(
handler
,
Qfile_accessible_directory_p
,
filename
);
/* Need to gcpro in case the first function call has a handler that
causes filename to be relocated. */
/* It's an unlikely combination, but yes we really do need to gcpro:
Suppose that file-accessible-directory-p has no handler, but
file-directory-p does have a handler; this handler causes a GC which
relocates the string in `filename'; and finally file-directory-p
returns non-nil. Then we would end up passing a garbaged string
to file-executable-p. */
GCPRO1
(
filename
);
tem
=
(
NILP
(
Ffile_directory_p
(
filename
))
||
NILP
(
Ffile_executable_p
(
filename
)));
UNGCPRO
;
return
tem
?
Qnil
:
Qt
;
}
...
...
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