summaryrefslogtreecommitdiff
path: root/src/unexpand.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-01-26 18:51:44 +0000
committerJim Meyering <jim@meyering.net>1994-01-26 18:51:44 +0000
commitc6756ec787c27922538635602d51dbf63da93b67 (patch)
tree1c35749d8032bb7e6f5da5f9edeb9e3fcbbdd2b8 /src/unexpand.c
parentf1adf86d0987a704b8bebffc91bdddbbd886e8ee (diff)
downloadcoreutils-c6756ec787c27922538635602d51dbf63da93b67.tar.xz
.
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);