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

Diff for /src/usr.bin/tmux/options.c between version 1.43 and 1.44

version 1.43, 2019/04/26 11:38:51 version 1.44, 2019/05/12 18:16:33
Line 354 
Line 354 
         struct options_array_item       *a;          struct options_array_item       *a;
         char                            *new;          char                            *new;
         struct cmd_list                 *cmdlist;          struct cmd_list                 *cmdlist;
           char                            *error;
   
         if (!OPTIONS_IS_ARRAY(o)) {          if (!OPTIONS_IS_ARRAY(o)) {
                 *cause = xstrdup("not an array");                  if (cause != NULL)
                           *cause = xstrdup("not an array");
                 return (-1);                  return (-1);
         }          }
   
         if (OPTIONS_IS_COMMAND(o)) {          if (OPTIONS_IS_COMMAND(o)) {
                 cmdlist = cmd_string_parse(value, NULL, 0, cause);                  cmdlist = cmd_string_parse(value, NULL, 0, &error);
                 if (cmdlist == NULL && *cause != NULL)                  if (cmdlist == NULL && error != NULL) {
                           if (cause != NULL)
                                   *cause = error;
                           else
                                   free(error);
                         return (-1);                          return (-1);
                   }
         }          }
   
         a = options_array_item(o, idx);          a = options_array_item(o, idx);

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44