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

Diff for /src/usr.bin/tmux/cmd-source-file.c between version 1.7 and 1.8

version 1.7, 2009/11/26 21:37:13 version 1.8, 2010/02/06 17:15:33
Line 89 
Line 89 
 cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct cmd_source_file_data     *data = self->data;          struct cmd_source_file_data     *data = self->data;
         char                            *cause;          char                           **causes;
           u_int                            i, ncauses;
   
         if (load_cfg(data->path, ctx, &cause) != 0) {          causes = NULL;
                 ctx->error(ctx, "%s", cause);          ncauses = 0;
                 xfree(cause);  
                 return (-1);          if (load_cfg(data->path, ctx, &ncauses, &causes) != 0) {
                   for (i = 0; i < ncauses; i++) {
                           ctx->print(ctx, "%s", causes[i]);
                           xfree(causes[i]);
                   }
                   xfree(causes);
         }          }
   
         return (0);          return (0);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8