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