cmdutils: remove unneeded null check
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 21:15:19 +0000 (23:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Oct 2012 21:28:50 +0000 (23:28 +0200)
Fixes CID703769
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c

index 2312ca2..f4474f6 100644 (file)
@@ -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;