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

Diff for /src/usr.bin/tmux/format.c between version 1.36 and 1.37

version 1.36, 2013/10/10 12:39:24 version 1.37, 2013/10/10 23:31:03
Line 353 
Line 353 
 char *  char *
 format_get_command(struct window_pane *wp)  format_get_command(struct window_pane *wp)
 {  {
         char    *cmd;          char    *cmd, *out;
   
         cmd = get_proc_name(wp->fd, wp->tty);          cmd = get_proc_name(wp->fd, wp->tty);
         if (cmd == NULL || *cmd == '\0') {          if (cmd == NULL || *cmd == '\0') {
Line 361 
Line 361 
                 if (cmd == NULL || *cmd == '\0')                  if (cmd == NULL || *cmd == '\0')
                         cmd = wp->shell;                          cmd = wp->shell;
         }          }
         return (parse_window_name(cmd));          out = parse_window_name(cmd);
           free(cmd);
           return (out);
 }  }
   
 /* Set default format keys for a session. */  /* Set default format keys for a session. */

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37