protect against empty -N command-line argument

This commit is contained in:
Matthew Flatt 2011-03-29 11:12:07 -06:00
parent 0839f763ec
commit 05b777d382

View File

@ -979,6 +979,12 @@ static int run_from_cmd_line(int argc, char *_argv[],
argv++;
--argc;
sprog = argv[0];
if (!*sprog) {
PRINTF("%s: empty path after %s switch\n",
prog,
real_switch);
goto show_need_help;
}
was_config_flag = 1;
break;
case 'q':