Browse code

Merge commit '47e3e1097e09da7f973908e09df15e3bb7c5e1f4'

* commit '47e3e1097e09da7f973908e09df15e3bb7c5e1f4':
cmdutils: Use the correct guard

Conflicts:
cmdutils.c

See: 35daf3ca8173f80f200860e06a410ced31a8b360
Merged-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/10/17 21:57:00
Showing 1 changed files
... ...
@@ -444,7 +444,7 @@ int locate_option(int argc, char **argv, const OptionDef *options,
444 444
              (po->name && !strcmp(optname, po->name)))
445 445
             return i;
446 446
 
447
-        if (po->flags & HAS_ARG)
447
+        if (!po->name || po->flags & HAS_ARG)
448 448
             i++;
449 449
     }
450 450
     return 0;