diff options
author | Kim F. Storm <storm@cua.dk> | 2005-07-20 14:40:35 +0000 |
---|---|---|
committer | Kim F. Storm <storm@cua.dk> | 2005-07-20 14:40:35 +0000 |
commit | ebfe97a2d40fa1726e429fd76750d910ade3e871 (patch) | |
tree | 9392574b1a3c1e515230b2693ad03c09a6aae260 /src/lread.c | |
parent | fff7e9825a1f99b9c0c35a399a7883db5bee6a58 (diff) | |
download | emacs-ebfe97a2d40fa1726e429fd76750d910ade3e871.tar.gz emacs-ebfe97a2d40fa1726e429fd76750d910ade3e871.tar.bz2 emacs-ebfe97a2d40fa1726e429fd76750d910ade3e871.zip |
(load_unwind): Rework last change.
Diffstat (limited to 'src/lread.c')
-rw-r--r-- | src/lread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lread.c b/src/lread.c index cb455ebbb00..2a9a8c060cc 100644 --- a/src/lread.c +++ b/src/lread.c @@ -953,12 +953,12 @@ Return t if file exists. */) } static Lisp_Object -load_unwind (stream) /* used as unwind-protect function in load */ - Lisp_Object stream; +load_unwind (arg) /* used as unwind-protect function in load */ + Lisp_Object arg; { - struct Lisp_Save_Value *p = XSAVE_VALUE (stream); - - fclose ((FILE *) p->pointer); + FILE *stream = (FILE *) XSAVE_VALUE (arg)->pointer; + if (stream != NULL) + fclose (stream); if (--load_in_progress < 0) load_in_progress = 0; return Qnil; } |