Better check if argc is 0 because argv[0] is later used.

Review URL: http://codereview.chromium.org/10093005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132580 0039d316-1c4b-4281-b951-d872f2087c98
parent 5458b022
......@@ -174,3 +174,4 @@ Arun Mankuzhi <arun.m@samsung.com>
Taylor Price <trprice@gmail.com>
Alexandru Chiculita <achicu@adobe.com>
Eric Rescorla <ekr@rtfm.com>
Erik Sjölund <erik.sjolund@gmail.com>
......@@ -381,6 +381,10 @@ static bool SetupChildEnvironment() {
int main(int argc, char **argv) {
if (argc <= 1) {
if (argc == 0) {
return 1;
}
fprintf(stderr, "Usage: %s <renderer process> <args...>\n", argv[0]);
return 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment