summaryrefslogtreecommitdiff
path: root/log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'log.cpp')
-rw-r--r--log.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/log.cpp b/log.cpp
index f842f22..187ce85 100644
--- a/log.cpp
+++ b/log.cpp
@@ -72,7 +72,15 @@ void logtofile::init()
{
extern bool bDebugLog;
if(bDebugLog)
+ {
+ if(path)
+ mir_free(path);
path = UniGetContactSettingUtf(NULL, szGPGModuleName, "szLogFilePath", _T("C:\\GPGdebug.log"));
+ }
+}
+logtofile::logtofile()
+{
+ path = NULL;
}
logtofile::~logtofile()
{