diff options
| -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. */) | |||
| 953 | } | 953 | } |
| 954 | 954 | ||
| 955 | static Lisp_Object | 955 | static Lisp_Object |
| 956 | load_unwind (stream) /* used as unwind-protect function in load */ | 956 | load_unwind (arg) /* used as unwind-protect function in load */ |
| 957 | Lisp_Object stream; | 957 | Lisp_Object arg; |
| 958 | { | 958 | { |
| 959 | struct Lisp_Save_Value *p = XSAVE_VALUE (stream); | 959 | FILE *stream = (FILE *) XSAVE_VALUE (arg)->pointer; |
| 960 | 960 | if (stream != NULL) | |
| 961 | fclose ((FILE *) p->pointer); | 961 | fclose (stream); |
| 962 | if (--load_in_progress < 0) load_in_progress = 0; | 962 | if (--load_in_progress < 0) load_in_progress = 0; |
| 963 | return Qnil; | 963 | return Qnil; |
| 964 | } | 964 | } |