ENH: make sure value is set before using it

This commit is contained in:
Bill Hoffman 2006-10-03 11:55:34 -04:00
parent 46c6442ce2
commit 9c3b654991
1 changed files with 1 additions and 1 deletions

View File

@ -212,13 +212,13 @@ bool Registry::ReadValue(const char *subkey,
const char *key, const char *key,
const char **value) const char **value)
{ {
*value = 0;
bool res = false; bool res = false;
bool open = false; bool open = false;
if ( ! value ) if ( ! value )
{ {
return res; return res;
} }
*value = 0;
if ( !m_Opened ) if ( !m_Opened )
{ {
if ( !this->Open(this->GetTopLevel(), subkey, if ( !this->Open(this->GetTopLevel(), subkey,