WebDAV: fix cppcheck warning about uninitialized memory read

cppcheck cannot know that one of the two if checks must succeed
and warns about the case when both are false. This shouldn't
happen, but it doesn't hurt to initialize the const char * pointer
to a default value.
This commit is contained in:
Patrick Ohly 2014-01-07 01:36:16 -08:00
parent d88d2e8403
commit 9d473b3a65
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ void ContextSettings::lookupAuthProvider()
InitStateString password;
// prefer source config if anything is set there
const char *credentialsFrom;
const char *credentialsFrom = "undefined";
if (m_sourceConfig) {
identity = m_sourceConfig->getUser();
password = m_sourceConfig->getPassword();