diff options
Diffstat (limited to 'src/daemon/Settings.cpp')
| -rw-r--r-- | src/daemon/Settings.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/daemon/Settings.cpp b/src/daemon/Settings.cpp index e0d13ef8..f7b7d2ef 100644 --- a/src/daemon/Settings.cpp +++ b/src/daemon/Settings.cpp @@ -54,8 +54,8 @@ bool g_settings_bOpenGPGCheck = false; GList *g_settings_setOpenGPGPublicKeys = NULL; GList *g_settings_setBlackListedPkgs = NULL; GList *g_settings_setBlackListedPaths = NULL; -std::string g_settings_sWatchCrashdumpArchiveDir; char *g_settings_sDatabase = NULL; +char *g_settings_sWatchCrashdumpArchiveDir = NULL; unsigned int g_settings_nMaxCrashReportsSize = 1000; bool g_settings_bProcessUnpackaged = false; @@ -223,7 +223,7 @@ static int ParseCommon() it = s_mapSectionCommon.find("WatchCrashdumpArchiveDir"); if (it != end) { - g_settings_sWatchCrashdumpArchiveDir = it->second; + g_settings_sWatchCrashdumpArchiveDir = xstrdup(it->second.c_str()); } it = s_mapSectionCommon.find("MaxCrashReportsSize"); if (it != end) @@ -583,4 +583,6 @@ void settings_free() g_list_free(g_settings_setBlackListedPaths); free(g_settings_sDatabase); + + free(g_settings_sWatchCrashdumpArchiveDir); } |
