From 9c3b6549913ed7adc4f12a545ebb6005897f2058 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 3 Oct 2006 11:55:34 -0400 Subject: [PATCH] ENH: make sure value is set before using it --- Source/kwsys/Registry.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/Registry.cxx b/Source/kwsys/Registry.cxx index b410be7e8..dcfec52ec 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,