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 *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,
|
||||||
|
|
Loading…
Reference in New Issue