From 837bc95685ca5465de6af1dedd3db44b4212b00b Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 26 Mar 2018 18:18:46 +0000 Subject: [PATCH] correct handling of mods_dir FossilOrigin-Name: b112e4998dbb021d1ad0ba69bcb032c671c2a5c3d64e77921f2cb8b36d60cb81 --- src/ac/conf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ac/conf.c b/src/ac/conf.c index 25f744d0..fb4827ea 100644 --- a/src/ac/conf.c +++ b/src/ac/conf.c @@ -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;