summaryrefslogtreecommitdiff
path: root/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expand.c b/expand.c
index 0387368..a7cfcdb 100644
--- a/expand.c
+++ b/expand.c
@@ -424,7 +424,7 @@ expand_argument (str, end)
{
char *tmp;
- if (*end == '\0')
+ if (!end || *end == '\0')
tmp = str;
else
{