summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-03-25 23:38:00 +0000
committerJim Meyering <jim@meyering.net>1994-03-25 23:38:00 +0000
commit8bf5a6ed183fe03026e0f24b751a8303860c2d55 (patch)
treef3b7990388d4762e89c6f1cbf6580dbe30cee2aa /src/expand.c
parent8bcd22c5104e44227dccd458e6e50940d9e9a462 (diff)
downloadcoreutils-8bf5a6ed183fe03026e0f24b751a8303860c2d55.tar.xz
.
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expand.c b/src/expand.c
index 52b3f0eda..b17950454 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -277,6 +277,8 @@ expand ()
int convert = 1; /* If nonzero, perform translations. */
fp = next_file ((FILE *) NULL);
+ if (fp == NULL)
+ return;
for (;;)
{
c = getc (fp);