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
6b1b199d
Commit
6b1b199d
authored
Jul 20, 2013
by
Andreas Schwab
Browse files
* lread.c (Fload): Avoid uninitialized warning.
parent
3f5bef16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/lread.c
src/lread.c
+2
-2
No files found.
src/ChangeLog
View file @
6b1b199d
2013-07-20 Andreas Schwab <schwab@linux-m68k.org>
* lread.c (Fload): Avoid uninitialized warning.
2013-07-19 Paul Eggert <eggert@cs.ucla.edu>
Fix some minor file descriptor leaks and related glitches.
...
...
src/lread.c
View file @
6b1b199d
...
...
@@ -1044,7 +1044,7 @@ Return t if the file exists and loads successfully. */)
{
FILE
*
stream
;
int
fd
;
int
fd_index
;
int
fd_index
=
0
;
ptrdiff_t
count
=
SPECPDL_INDEX
();
struct
gcpro
gcpro1
,
gcpro2
,
gcpro3
;
Lisp_Object
found
,
efound
,
hist_file_name
;
...
...
@@ -1175,7 +1175,7 @@ Return t if the file exists and loads successfully. */)
#endif
}
if
(
0
<=
fd
)
if
(
fd
>=
0
)
{
fd_index
=
SPECPDL_INDEX
();
record_unwind_protect_int
(
close_file_unwind
,
fd
);
...
...
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