summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-12 20:21:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-12 20:21:18 (GMT)
commit821dc7b30689423ad25442fc76090ecaebc47060 (patch)
tree093df07efff6d1adff8354ba9fd60c06fcc94641
parentc69d12d02fe02a5f994650bef274beea58978c2b (diff)
downloadCMake-821dc7b30689423ad25442fc76090ecaebc47060.zip
CMake-821dc7b30689423ad25442fc76090ecaebc47060.tar.gz
CMake-821dc7b30689423ad25442fc76090ecaebc47060.tar.bz2
BUG: Fix error conditions
-rw-r--r--Source/kwsys/Registry.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/kwsys/Registry.cxx b/Source/kwsys/Registry.cxx
index 685c50b..fd788d3 100644
--- a/Source/kwsys/Registry.cxx
+++ b/Source/kwsys/Registry.cxx
@@ -211,7 +211,7 @@ bool Registry::ReadValue(const char *subkey,
const char **value)
{
*value = 0;
- bool res = true;
+ bool res = false;
bool open = false;
if ( ! value )
{
@@ -241,7 +241,7 @@ bool Registry::ReadValue(const char *subkey,
//----------------------------------------------------------------------------
bool Registry::DeleteKey(const char *subkey, const char *key)
{
- bool res = true;
+ bool res = false;
bool open = false;
if ( !m_Opened )
{
@@ -272,7 +272,7 @@ bool Registry::DeleteKey(const char *subkey, const char *key)
//----------------------------------------------------------------------------
bool Registry::DeleteValue(const char *subkey, const char *key)
{
- bool res = true;
+ bool res = false;
bool open = false;
if ( !m_Opened )
{