From a2a5700a8530bf4a08b6c70c2e491b47533b4648 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 6 May 2020 23:33:55 +0200 Subject: [PATCH] fix reveng getopt bug --- client/deps/reveng/cli.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/deps/reveng/cli.c b/client/deps/reveng/cli.c index 9d849dfc3..34aee6fe7 100644 --- a/client/deps/reveng/cli.c +++ b/client/deps/reveng/cli.c @@ -98,6 +98,7 @@ int reveng_main(int argc, char *argv[]) { // pos=0; --- not in this ver of getopt optind = 1; + optreset = 1; do { c = getopt(argc, argv, "?A:BDFGLMP:SVXa:bcdefhi:k:lm:p:q:rstuvw:x:yz"); switch (c) {