projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5e886d
)
Fix removal of variables from process-environment
author
Eli Zaretskii
<eliz@gnu.org>
Mon, 20 Jun 2016 14:19:25 +0000
(17:19 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Mon, 20 Jun 2016 14:19:25 +0000
(17:19 +0300)
* src/callproc.c (add_env): Fix comparison of a variable with a
value against the same variable without a value. (Bug#23779)
src/callproc.c
patch
|
blob
|
history
diff --git
a/src/callproc.c
b/src/callproc.c
index db602f538c95014d383f6f5f2c755085539aec46..2fb5b1d5194dd4acee1032381b98c6ec195df1e1 100644
(file)
--- a/
src/callproc.c
+++ b/
src/callproc.c
@@
-1099,7
+1099,7
@@
add_env (char **env, char **new_env, char *string)
char *p = *ep, *q = string;
while (ok)
{
- if (*q != *p)
+ if (*
p && *
q != *p)
break;
if (*q == 0)
/* The string is a lone variable name; keep it for now, we