Quoting Vittorio Giovara (2014-10-14 17:46:49)
> From: Michael Niedermayer <[email protected]>
> 
> Bug-Id: CID 703769
> ---
>  cmdutils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cmdutils.c b/cmdutils.c
> index 96b40f3..56f3d09 100644
> --- a/cmdutils.c
> +++ b/cmdutils.c
> @@ -414,7 +414,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)

Nope. That's actually supposed to be if (!po->name)

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to