diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-15 02:43:30 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-17 09:55:46 +0100 |
commit | 47e3e1097e09da7f973908e09df15e3bb7c5e1f4 (patch) | |
tree | ba97aab7a807cb157bf642b3373b2d3f4d3dde2b | |
parent | 0db6bbb24c1a9f6b5527f460361a5a4132248eee (diff) | |
download | ffmpeg-47e3e1097e09da7f973908e09df15e3bb7c5e1f4.tar.gz |
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
-rw-r--r-- | cmdutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c index 96b40f31a6..eff011c7ce 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->name || po->flags & HAS_ARG) i++; } return 0; |