[wtp] fix argument parsing
* efd9eedd
introduced a bug which made -c unusable
This commit is contained in:
parent
247a65c7d5
commit
9d0fe1cc76
@ -1350,6 +1350,7 @@ static void wtp_handle_argv(int argc, char **argv) {
|
|||||||
case 'c': {
|
case 'c': {
|
||||||
if (strlen(optarg) < sizeof(g_configurationfile)) {
|
if (strlen(optarg) < sizeof(g_configurationfile)) {
|
||||||
strcpy(g_configurationfile, optarg);
|
strcpy(g_configurationfile, optarg);
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
printf("Invalid -%c argument\n", optopt);
|
printf("Invalid -%c argument\n", optopt);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user