Commit 35daf3ca authored by Michael Niedermayer's avatar Michael Niedermayer

cmdutils: remove unneeded null check

Fixes CID703769
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eebde404
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment