Skip to content

Commit

Permalink
do not call strcasecmp unless a string is given.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmei committed May 19, 2000
1 parent 95e3015 commit a5b3876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kame/kame/scope6config/scope6config.c
Expand Up @@ -90,7 +90,7 @@ main(argc, argv)
exit(1);
}

if (strcasecmp(argv[0], "default") == 0)
if (argc > 0 && strcasecmp(argv[0], "default") == 0)
error = print_default();
else if (!aflag)
error = scopeconfig(argv[0], linkid, siteid, orgid);
Expand Down

0 comments on commit a5b3876

Please sign in to comment.