Commit 4ddff36f authored by Eli Zaretskii's avatar Eli Zaretskii

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.
parent 46a681e4
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment