From c661cb6672af5ebcb900ec8766b24761bd2ab011 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 19 Dec 2012 21:53:22 +0100 Subject: cmdutils: pass number of groups to split_commandline(). This makes the code simpler and avoids mixing designated and non-designated initializers in a potentially unsafe way in avconv. --- cmdutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmdutils.h') diff --git a/cmdutils.h b/cmdutils.h index 1af30d7676..ed9c68e9c0 100644 --- a/cmdutils.h +++ b/cmdutils.h @@ -286,7 +286,7 @@ int parse_optgroup(void *optctx, OptionGroup *g); */ int split_commandline(OptionParseContext *octx, int argc, char *argv[], const OptionDef *options, - const OptionGroupDef *groups); + const OptionGroupDef *groups, int nb_groups); /** * Free all allocated memory in an OptionParseContext. -- cgit v1.2.3