diff options
author | Chen Congwu <congwu.chen@intel.com> | 2010-03-11 14:41:10 +0800 |
---|---|---|
committer | Chen Congwu <congwu.chen@intel.com> | 2010-03-11 14:41:10 +0800 |
commit | e1df9e73e9b06f1a9aed61b41b87471605a92be3 (patch) | |
tree | 4e18d2d7bc1b9d19a45d4944d7932c7e745a097e | |
parent | 9c67f994b75c92c348f4a28dd484dd9d37d99681 (diff) |
Valgrind warning fixed: initialize the conditonal variablesmb10091
-rw-r--r-- | src/sysync/syncsession.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sysync/syncsession.cpp b/src/sysync/syncsession.cpp index c7e5d8b..a1684e1 100644 --- a/src/sysync/syncsession.cpp +++ b/src/sysync/syncsession.cpp @@ -947,6 +947,11 @@ TSyncSession::TSyncSession( // assume normal, full-featured session. Profile config or session progress might set this flag later fLegacyMode = false; fLenientMode = false; + + //initialize the conditonal variables to keep valgrind happy + fNeedAuth = true; + fRemoteRequestedAuth = auth_none; + #ifdef SYDEBUG // initialize session debug logging fSessionDebugLogs=getRootConfig()->fDebugConfig.fSessionDebugLogs; /// init from config @todo: get rid of this special session level flag, handle it all via session logger's fDebugEnabled / getDbgMask() |