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

Diff for /src/usr.bin/tmux/status.c between version 1.193 and 1.194

version 1.193, 2019/04/23 20:36:55 version 1.194, 2019/04/23 20:40:03
Line 1293 
Line 1293 
         size_t                                    slen = strlen(s), valuelen;          size_t                                    slen = strlen(s), valuelen;
         struct options_entry                     *o;          struct options_entry                     *o;
         struct options_array_item                *a;          struct options_array_item                *a;
           union options_value                      *ov;
         const char                               *layouts[] = {          const char                               *layouts[] = {
                 "even-horizontal", "even-vertical", "main-horizontal",                  "even-horizontal", "even-vertical", "main-horizontal",
                 "main-vertical", "tiled", NULL                  "main-vertical", "tiled", NULL
Line 1321 
Line 1322 
         if (o != NULL) {          if (o != NULL) {
                 a = options_array_first(o);                  a = options_array_first(o);
                 while (a != NULL) {                  while (a != NULL) {
                         value = options_array_item_value(a);;                          ov = options_array_item_value(a);
                         if (value == NULL || (cp = strchr(value, '=')) == NULL)                          if (ov == NULL)
                                 goto next;                                  goto next;
   
                           value = ov->string;
                           if ((cp = strchr(value, '=')) == NULL)
                               goto next;
                         valuelen = cp - value;                          valuelen = cp - value;
                         if (slen > valuelen || strncmp(value, s, slen) != 0)                          if (slen > valuelen || strncmp(value, s, slen) != 0)
                                 goto next;                                  goto next;

Legend:
Removed from v.1.193  
changed lines
  Added in v.1.194