protect against empty -N command-line argument
This commit is contained in:
parent
0839f763ec
commit
05b777d382
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue
Block a user