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

Diff for /src/usr.bin/tmux/Attic/cmd-string.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/06/05 07:18:37
Line 63 
Line 63 
         if ((t = strchr(s, ' ')) == NULL && (t = strchr(s, '\t')) == NULL)          if ((t = strchr(s, ' ')) == NULL && (t = strchr(s, '\t')) == NULL)
                 t = strchr(s, '\0');                  t = strchr(s, '\0');
         if ((u = strchr(s, '=')) != NULL && u < t) {          if ((u = strchr(s, '=')) != NULL && u < t) {
                 if (putenv((char *) s) != 0) {                  if (putenv(xstrdup(s)) != 0) {
                         xasprintf(cause, "assignment failed: %s", s);                          xasprintf(cause, "assignment failed: %s", s);
                         return (-1);                          return (-1);
                 }                  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2