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

Diff for /src/usr.bin/tmux/arguments.c between version 1.29 and 1.30

version 1.29, 2020/03/21 13:16:15 version 1.30, 2020/04/12 20:54:28
Line 216 
Line 216 
         char                    *escaped, *result;          char                    *escaped, *result;
         int                      flags;          int                      flags;
   
         if (*s == '\0')          if (*s == '\0') {
                 return (xstrdup(s));                  xasprintf(&result, "''");
                   return (result);
           }
         if (s[0] != ' ' &&          if (s[0] != ' ' &&
             (strchr(quoted, s[0]) != NULL || s[0] == '~') &&              (strchr(quoted, s[0]) != NULL || s[0] == '~') &&
             s[1] == '\0') {              s[1] == '\0') {

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30