diff options
Diffstat (limited to 'src/misc/getopt_long.c')
-rw-r--r-- | src/misc/getopt_long.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/misc/getopt_long.c b/src/misc/getopt_long.c index 45992f85..e5a4a75a 100644 --- a/src/misc/getopt_long.c +++ b/src/misc/getopt_long.c @@ -76,6 +76,7 @@ static int __getopt_long_core(int argc, char *const *argv, const char *optstring if (cnt==1) { i = match; optind++; + optopt = longopts[i].val; if (*opt == '=') { if (!longopts[i].has_arg) { if (optstring[0] == ':' || !opterr) |