diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-15 04:43:30 +0400 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-17 12:55:46 +0400 |
commit | 47e3e1097e09da7f973908e09df15e3bb7c5e1f4 (patch) | |
tree | ba97aab7a807cb157bf642b3373b2d3f4d3dde2b /cmdutils.c | |
parent | 0db6bbb24c1a9f6b5527f460361a5a4132248eee (diff) |
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
Diffstat (limited to 'cmdutils.c')
-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; |