musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/linux/getopt_long.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/getopt_long.c b/src/linux/getopt_long.c
index d80cd1b6..6d3a4a6e 100644
--- a/src/linux/getopt_long.c
+++ b/src/linux/getopt_long.c
@@ -14,7 +14,7 @@ static int __getopt_long(int argc, char *const *argv, const char *optstring, con
const char *name = longopts[i].name;
char *opt = argv[optind]+1;
if (*opt == '-') opt++;
- while (*name && *name++ == *opt++);
+ for (; *name && *name == *opt; name++, opt++);
if (*name || (*opt && *opt != '=')) continue;
if (*opt == '=') {
if (!longopts[i].has_arg) continue;
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月28日 23:02:35 +0000

AltStyle によって変換されたページ (->オリジナル) /