[BACK]Return to environ.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/environ.c between version 1.10 and 1.11

version 1.10, 2015/11/24 23:46:15 version 1.11, 2016/01/15 11:33:41
Line 196 
Line 196 
 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);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11