Skip to content
Snippets Groups Projects
Commit ce2f3f54 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: make sure value is set before using it

parent 8b6b04e0
Branches
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment