Allow more then one --conf-file on the command line.

This commit is contained in:
Simon Kelley
2019-03-29 23:11:05 +00:00
parent 5fc639cf9a
commit 5c464ef62e
2 changed files with 11 additions and 5 deletions

View File

@@ -5012,9 +5012,14 @@ void read_opts(int argc, char **argv, char *compile_opts)
}
else if (option == 'C')
{
if (conffile)
free(conffile);
conffile = opt_string_alloc(arg);
if (!conffile)
conffile = opt_string_alloc(arg);
else
{
char *extra = opt_string_alloc(arg);
one_file(extra, 0);
free(extra);
}
}
else
{