[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.9 and 1.10

version 1.9, 2009/11/16 11:15:44 version 1.10, 2009/11/21 17:52:18
Line 332 
Line 332 
   
         home = NULL;          home = NULL;
         if (cmd_string_getc(s, p) == '/') {          if (cmd_string_getc(s, p) == '/') {
                 if ((home = getenv("HOME")) == NULL) {                  if ((home = getenv("HOME")) == NULL || *home == '\0') {
                         if ((pw = getpwuid(getuid())) != NULL)                          if ((pw = getpwuid(getuid())) != NULL)
                                 home = pw->pw_dir;                                  home = pw->pw_dir;
                 }                  }

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