Revision: 23005
Author:   [email protected]
Date:     Fri Aug  8 14:42:18 2014 UTC
Log:      Fix command line parsing crash.
http://code.google.com/p/v8/source/detail?r=23005

Modified:
 /branches/bleeding_edge/src/flags.cc

=======================================
--- /branches/bleeding_edge/src/flags.cc        Mon Aug  4 11:34:54 2014 UTC
+++ /branches/bleeding_edge/src/flags.cc        Fri Aug  8 14:42:18 2014 UTC
@@ -372,7 +372,8 @@
           value == NULL) {
         if (i < *argc) {
           value = argv[i++];
-        } else {
+        }
+        if (!value) {
           PrintF(stderr, "Error: missing value for flag %s of type %s\n"
                  "Try --help for options\n",
                  arg, Type2String(flag->type()));

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to