cmdutils: remove unneeded null check

Fixes CID703769
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/6/merge
Michael Niedermayer 13 years ago
parent eebde404bc
commit 35daf3ca81
  1. 2
      cmdutils.c

@ -380,7 +380,7 @@ int locate_option(int argc, char **argv, const OptionDef *options,
(po->name && !strcmp(optname, po->name)))
return i;
if (!po || po->flags & HAS_ARG)
if (po->flags & HAS_ARG)
i++;
}
return 0;

Loading…
Cancel
Save