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 **value)
{
*value = 0;
bool res = false;
bool open = false;
if ( ! value )
{
return res;
}
*value = 0;
if ( !m_Opened )
{
if ( !this->Open(this->GetTopLevel(), subkey,