summaryrefslogtreecommitdiff
path: root/src/unexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unexpand.c')
-rw-r--r--src/unexpand.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unexpand.c b/src/unexpand.c
index 12762e354..6c3a52776 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -282,6 +282,9 @@ unexpand ()
int pending = 0; /* Pending columns of blanks. */
fp = next_file ((FILE *) NULL);
+ if (fp == NULL)
+ return;
+
for (;;)
{
c = getc (fp);