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:
parent
46a681e4e1
commit
4ddff36f6a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue