Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2104)

Unified Diff: dart/runtime/bin/main.cc

Issue 302703002: Version 1.4.2 (Closed) Base URL: http://dart.googlecode.com/svn/branches/1.4/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/runtime/bin/main.cc
===================================================================
--- dart/runtime/bin/main.cc (revision 36645)
+++ dart/runtime/bin/main.cc (working copy)
@@ -391,7 +391,7 @@
if (strncmp(argv[i], kPackageRoot, strlen(kPackageRoot)) == 0) {
if (!ProcessPackageRootOption(argv[i] + strlen(kPackageRoot))) {
i++;
- if (!ProcessPackageRootOption(argv[i])) {
+ if ((argv[i] == NULL) || !ProcessPackageRootOption(argv[i])) {
Log::PrintErr("Invalid option specification : '%s'\n", argv[i - 1]);
i++;
break;

Powered by Google App Engine
This is Rietveld 408576698