diff options
| author | Eli Zaretskii | 2017-07-12 17:49:21 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-07-12 17:49:21 +0300 |
| commit | 4ddff36f6a19492894296e1a2d89c362bf879906 (patch) | |
| tree | 13920d2e263fb879f8a95506f4e365954def0782 | |
| parent | 46a681e4e1463d355c458df08d0f6403335aba05 (diff) | |
| download | emacs-4ddff36f6a19492894296e1a2d89c362bf879906.tar.gz emacs-4ddff36f6a19492894296e1a2d89c362bf879906.zip | |
Avoid assertion violations in close_infile_unwind
* src/lread.c (close_infile_unwind): A temporary band-aid solution
for bug#27642: allow 'infile' be NULL.
| -rw-r--r-- | src/lread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index 4d1a27d1c1d..fe5de382677 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1066,7 +1066,7 @@ static void | |||
| 1066 | close_infile_unwind (void *arg) | 1066 | close_infile_unwind (void *arg) |
| 1067 | { | 1067 | { |
| 1068 | FILE *stream = arg; | 1068 | FILE *stream = arg; |
| 1069 | eassert (infile->stream == stream); | 1069 | eassert (infile == NULL || infile->stream == stream); |
| 1070 | infile = NULL; | 1070 | infile = NULL; |
| 1071 | fclose (stream); | 1071 | fclose (stream); |
| 1072 | } | 1072 | } |