X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/39f09d68ce7ebe9e229c9bf5209bfc30a8f51064..cf7bee146cbaaf2dbebbd7ce48a61014aeae93c1:/missing/getopt_long.c diff --git a/missing/getopt_long.c b/missing/getopt_long.c index 5018400e..927028ff 100644 --- a/missing/getopt_long.c +++ b/missing/getopt_long.c @@ -565,11 +565,11 @@ start: ++optind; } else { /* takes (optional) argument */ optarg = NULL; + if (*place) { /* no white space */ DIAG_OFF_CAST_QUAL - if (*place) /* no white space */ optarg = (char *)place; DIAG_ON_CAST_QUAL - else if (oli[1] != ':') { /* arg not optional */ + } else if (oli[1] != ':') { /* arg not optional */ if (++optind >= nargc) { /* no arg */ place = EMSG; if (PRINT_ERROR)