[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.7 and 1.8

version 1.7, 2014/01/09 13:51:57 version 1.8, 2014/01/15 11:44:18
Line 78 
Line 78 
 args_parse(const char *template, int argc, char **argv)  args_parse(const char *template, int argc, char **argv)
 {  {
         struct args     *args;          struct args     *args;
         char            *ptr;  
         int              opt;          int              opt;
   
         args = xcalloc(1, sizeof *args);          args = xcalloc(1, sizeof *args);
Line 89 
Line 88 
         while ((opt = getopt(argc, argv, template)) != -1) {          while ((opt = getopt(argc, argv, template)) != -1) {
                 if (opt < 0)                  if (opt < 0)
                         continue;                          continue;
                 if (opt == '?' || (ptr = strchr(template, opt)) == NULL) {                  if (opt == '?' || strchr(template, opt) == NULL) {
                         args_free(args);                          args_free(args);
                         return (NULL);                          return (NULL);
                 }                  }

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