* */
int main(int argc, char *argv[])
{
- char *cf;
+ char *config_file;
int ret, i;
struct sched s;
struct command_task command_task_struct, *cmd_task = &command_task_struct;
audiod_cmdline_parser(argc, argv, &conf);
HANDLE_VERSION_FLAG("audiod", conf);
para_drop_privileges(conf.user_arg, conf.group_arg);
- cf = configfile_exists();
- if (cf) {
+ config_file = configfile_exists();
+ if (config_file) {
struct audiod_cmdline_parser_params params = {
.override = 0,
.initialize = 0,
.check_ambiguity = 0
};
- if (audiod_cmdline_parser_config_file(cf, &conf, ¶ms)) {
+ if (audiod_cmdline_parser_config_file(config_file, &conf, ¶ms)) {
PARA_EMERG_LOG("%s", "parse error in config file\n");
exit(EXIT_FAILURE);
}
+ free(config_file);
}
if (conf.logfile_given)
logfile = open_log(conf.logfile_arg);