Commit 6b1b199d authored by Andreas Schwab's avatar Andreas Schwab

* lread.c (Fload): Avoid uninitialized warning.

parent 3f5bef16
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.
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment