summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Registry.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/Registry.cxx')
-rw-r--r--Source/kwsys/Registry.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/Registry.cxx b/Source/kwsys/Registry.cxx
index b410be7..dcfec52 100644
--- a/Source/kwsys/Registry.cxx
+++ b/Source/kwsys/Registry.cxx
@@ -212,13 +212,13 @@ bool Registry::ReadValue(const char *subkey,
const char *key,
const char **value)
{
- *value = 0;
bool res = false;
bool open = false;
if ( ! value )
{
return res;
}
+ *value = 0;
if ( !m_Opened )
{
if ( !this->Open(this->GetTopLevel(), subkey,