mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-11 09:18:25 +03:00
Fix (rare) bug in recognition of long argument forms.
This commit is contained in:
parent
33d3e82e4d
commit
060c45d8a1
@ -434,7 +434,8 @@ static struct arg *_find_arg(struct command *com, int opt)
|
||||
* short arg, or the index into
|
||||
* 'the_args'.
|
||||
*/
|
||||
if ((a->short_arg && (opt == a->short_arg)) || (opt == arg))
|
||||
if ((a->short_arg && (opt == a->short_arg)) ||
|
||||
(!a->short_arg && (opt == arg)))
|
||||
return a;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user