Browse Source

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
tags/n2.5
Luca Barbato Vittorio Giovara 10 years ago
parent
commit
47e3e1097e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cmdutils.c

+ 1
- 1
cmdutils.c View File

@@ -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;


Loading…
Cancel
Save