summaryrefslogtreecommitdiff
path: root/log.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-16 09:25:18 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-16 09:25:18 +0300
commitf8e420612fcc94a7a3f2455f357d7d57ff31c62d (patch)
tree336a04f0a95cd6b9da2c98a4c64d32d232c1f4c0 /log.cpp
parentfdfc7bdd1090a495dce55f651f159592ce77bdb1 (diff)
modified: gpg_wrapper.cpp
modified: log.cpp modified: log.h modified: main.cpp modified: new_gpg.rc modified: options.cpp modified: resource.h
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()
{