diff options
author | Miles Bader <miles@gnu.org> | 1995-10-13 23:30:34 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-10-13 23:30:34 +0000 |
commit | eebb3aa0edecbdd5961160cce86d2e8478b0e44b (patch) | |
tree | d423fa27b8a481a37b9fe6b315be09cc3e743b0f | |
parent | a6f6073707457a0a06aee51cd2663dde1ab61d51 (diff) |
(argp_parse): If an option alias doesn't have a key, use the real key.
-rw-r--r-- | libshouldbeinlibc/argp-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libshouldbeinlibc/argp-parse.c b/libshouldbeinlibc/argp-parse.c index fa3da19f..39acdeb3 100644 --- a/libshouldbeinlibc/argp-parse.c +++ b/libshouldbeinlibc/argp-parse.c @@ -242,7 +242,7 @@ argp_parse (struct argp *argp, int argc, char **argv, unsigned flags, values (the sign of the lower bits is preserved however)... */ long_end->val = - (opt->key & USER_MASK) + ((opt->key | real->key) & USER_MASK) + (((group - groups) + 1) << USER_BITS); /* Keep the LONG_OPTS list terminated. */ |