X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/8381ca69f471b4066ee9b01d2918b92cdf1aa91e..c26f4f6b17d688b3defb790486daf42392068aa3:/projects/stargazer/settings_impl.cpp diff --git a/projects/stargazer/settings_impl.cpp b/projects/stargazer/settings_impl.cpp index 0d0bc2ff..14609647 100644 --- a/projects/stargazer/settings_impl.cpp +++ b/projects/stargazer/settings_impl.cpp @@ -42,6 +42,7 @@ using namespace std; SETTINGS_IMPL::SETTINGS_IMPL() : strError(), modulesPath("/usr/lib/stg"), + dirName(DIR_NUM), confDir("/etc/stargazer"), scriptsDir("/etc/stargazer"), rules("/etc/stargazer/rules"), @@ -71,6 +72,7 @@ SETTINGS_IMPL::SETTINGS_IMPL() SETTINGS_IMPL::SETTINGS_IMPL(const std::string & cd) : strError(), modulesPath("/usr/lib/stg"), + dirName(DIR_NUM), confDir(cd), scriptsDir(cd), rules(cd + "/rules"), @@ -100,6 +102,7 @@ SETTINGS_IMPL::SETTINGS_IMPL(const std::string & cd) SETTINGS_IMPL::SETTINGS_IMPL(const SETTINGS_IMPL & rval) : strError(), modulesPath(rval.modulesPath), + dirName(rval.dirName), confDir(rval.confDir), scriptsDir(rval.scriptsDir), rules(rval.rules), @@ -432,6 +435,7 @@ while (node) if (child) { const DOTCONFDocumentNode * dirNameNode; + dirName.reserve(DIR_NUM); for (int i = 0; i < DIR_NUM; i++) { char strDirName[12];