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

Diff for /src/usr.bin/tmux/cfg.c between version 1.5 and 1.6

version 1.5, 2009/08/23 16:45:00 version 1.6, 2009/08/23 17:29:51
Line 51 
Line 51 
 }  }
   
 int  int
 load_cfg(const char *path, char **cause)  load_cfg(const char *path, struct cmd_ctx *ctxin, char **cause)
 {  {
         FILE            *f;          FILE            *f;
         u_int            n;          u_int            n;
Line 87 
Line 87 
                         continue;                          continue;
                 cfg_cause = NULL;                  cfg_cause = NULL;
   
                 ctx.msgdata = NULL;                  if (ctxin == NULL) {
                 ctx.curclient = NULL;                          ctx.msgdata = NULL;
                           ctx.curclient = NULL;
                           ctx.cmdclient = NULL;
                   } else {
                           ctx.msgdata = ctxin->msgdata;
                           ctx.curclient = ctxin->curclient;
                           ctx.cmdclient = ctxin->cmdclient;
                   }
   
                 ctx.error = cfg_error;                  ctx.error = cfg_error;
                 ctx.print = cfg_print;                  ctx.print = cfg_print;
                 ctx.info = cfg_print;                  ctx.info = cfg_print;
   
                 ctx.cmdclient = NULL;  
   
                 cfg_cause = NULL;                  cfg_cause = NULL;
                 cmd_list_exec(cmdlist, &ctx);                  cmd_list_exec(cmdlist, &ctx);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6