Return to environ.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.10, 2015/11/24 23:46:15 | version 1.11, 2016/01/15 11:33:41 | ||
---|---|---|---|
|
|
||
environ_push(struct environ *env) | environ_push(struct environ *env) | ||
{ | { | ||
struct environ_entry *envent; | struct environ_entry *envent; | ||
char **vp, *v; | char *v; | ||
for (vp = environ; *vp != NULL; vp++) { | while (*environ != NULL) { | ||
v = xstrdup(*vp); | v = xstrdup(*environ); | ||
v[strcspn(v, "=")] = '\0'; | v[strcspn(v, "=")] = '\0'; | ||
unsetenv(v); | unsetenv(v); |