ENH: make sure value is set before using it
This commit is contained in:
parent
46c6442ce2
commit
9c3b654991
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue