Commit 47e3e109 authored by Luca Barbato's avatar Luca Barbato Committed by Vittorio Giovara

cmdutils: Use the correct guard

The OptionDef arrays are terminated with a { NULL } element not NULL.

CC: libav-stable@libav.org
Bug-Id: CID 703769
parent 0db6bbb2
...@@ -414,7 +414,7 @@ int locate_option(int argc, char **argv, const OptionDef *options, ...@@ -414,7 +414,7 @@ int locate_option(int argc, char **argv, const OptionDef *options,
(po->name && !strcmp(optname, po->name))) (po->name && !strcmp(optname, po->name)))
return i; return i;
if (!po || po->flags & HAS_ARG) if (!po->name || po->flags & HAS_ARG)
i++; i++;
} }
return 0; 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