From 4ddff36f6a19492894296e1a2d89c362bf879906 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 12 Jul 2017 17:49:21 +0300 Subject: [PATCH] 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. --- src/lread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 close_infile_unwind (void *arg) { FILE *stream = arg; - eassert (infile->stream == stream); + eassert (infile == NULL || infile->stream == stream); infile = NULL; fclose (stream); } -- 2.39.5