]> git.saurik.com Git - bison.git/blobdiff - src/getargs.c
* src/getargs.c (flags_argmatch): Don't cause segmentation fault for
[bison.git] / src / getargs.c
index 673da188351525518b7820b27e0d8fd1e9097926..94d24329d716cdd0ea167be3135f96f30a20a2ec 100644 (file)
@@ -91,15 +91,15 @@ flags_argmatch (const char *option,
   if (args)
     {
       args = strtok (args, ",");
-      do
+      while (args)
        {
          int value = XARGMATCH (option, args, keys, values);
          if (value == 0)
            *flags = 0;
          else
            *flags |= value;
+          args = strtok (NULL, ",");
        }
-      while ((args = strtok (NULL, ",")));
     }
   else
     *flags = ~0;
@@ -274,7 +274,7 @@ Output:\n\
   -v, --verbose              same as `--report=state'\n\
   -b, --file-prefix=PREFIX   specify a PREFIX for output files\n\
   -o, --output=FILE          leave output to FILE\n\
-  -g, --graph                also produce a VCG description of the automaton\n\
+  -g, --graph                also output a graph of the automaton\n\
 \n\
 "), stdout);