correct handling of mods_dir

FossilOrigin-Name: b112e4998dbb021d1ad0ba69bcb032c671c2a5c3d64e77921f2cb8b36d60cb81
This commit is contained in:
7u83@mail.ru 2018-03-26 18:18:46 +00:00
parent 34e7b84b0c
commit 837bc95685
1 changed files with 3 additions and 1 deletions

View File

@ -557,7 +557,7 @@ static int conf_read_dbg_level(cfg_t * cfg)
}
struct cw_Mod ** conf_mods;
char *conf_mods_dir = "";
char *conf_mods_dir = NULL;
/*
* Read the module names from config file
@ -749,6 +749,8 @@ int read_config(const char *filename)
CFG_END()
};
cfg_t *cfg;
conf_mods_dir=cw_strdup("");
if (!init_control_port())
return 0;