aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index db602f538c9..2fb5b1d5194 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1099,7 +1099,7 @@ add_env (char **env, char **new_env, char *string)
1099 char *p = *ep, *q = string; 1099 char *p = *ep, *q = string;
1100 while (ok) 1100 while (ok)
1101 { 1101 {
1102 if (*q != *p) 1102 if (*p && *q != *p)
1103 break; 1103 break;
1104 if (*q == 0) 1104 if (*q == 0)
1105 /* The string is a lone variable name; keep it for now, we 1105 /* The string is a lone variable name; keep it for now, we