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.
This commit is contained in:
Eli Zaretskii 2017-07-12 17:49:21 +03:00
parent 46a681e4e1
commit 4ddff36f6a

View file

@ -1066,7 +1066,7 @@ static void
close_infile_unwind (void *arg)
{
FILE *stream = arg;
eassert (infile->stream == stream);
eassert (infile == NULL || infile->stream == stream);
infile = NULL;
fclose (stream);
}