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

Diff for /src/usr.bin/tmux/cmd-load-buffer.c between version 1.50 and 1.51

version 1.50, 2017/04/22 06:13:30 version 1.51, 2018/01/15 15:27:03
Line 59 
Line 59 
         struct client                   *c = item->client;          struct client                   *c = item->client;
         FILE                            *f;          FILE                            *f;
         const char                      *path, *bufname;          const char                      *path, *bufname;
         char                            *pdata, *new_pdata, *cause, *file;          char                            *pdata = NULL, *new_pdata, *cause;
           char                            *file;
         size_t                           psize;          size_t                           psize;
         int                              ch, error;          int                              ch, error;
   
Line 89 
Line 90 
         f = fopen(file, "rb");          f = fopen(file, "rb");
         if (f == NULL) {          if (f == NULL) {
                 cmdq_error(item, "%s: %s", file, strerror(errno));                  cmdq_error(item, "%s: %s", file, strerror(errno));
                 free(file);                  goto error;
                 return (CMD_RETURN_ERROR);  
         }          }
   
         pdata = NULL;          pdata = NULL;

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51