Commit dcabbb21 authored by Pavel Vainerman's avatar Pavel Vainerman

Coverity scan:

[fixed] CID 22703 (#1 of 1): Parse warning (PW.PARAM_SET_BUT_NOT_USED)
parent 1add5ffe
...@@ -929,9 +929,9 @@ namespace UniSetTypes ...@@ -929,9 +929,9 @@ namespace UniSetTypes
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
string Configuration::getRepSectionName( const string& sec, xmlNode* secnode ) string Configuration::getRepSectionName( const string& sec, xmlNode* secnode )
{ {
xmlNode* node = unixml->findNode(unixml->getFirstNode(), sec); secnode = unixml->findNode(unixml->getFirstNode(), sec);
if( node == NULL ) if( secnode == NULL )
{ {
ostringstream msg; ostringstream msg;
msg << "Configuration(initRepSections): Not found section '" << sec << "' in " << fileConfName; msg << "Configuration(initRepSections): Not found section '" << sec << "' in " << fileConfName;
...@@ -939,12 +939,10 @@ namespace UniSetTypes ...@@ -939,12 +939,10 @@ namespace UniSetTypes
throw SystemError(msg.str()); throw SystemError(msg.str());
} }
secnode = node; string ret(unixml->getProp(secnode, "section"));
string ret(unixml->getProp(node, "section"));
if( ret.empty() ) if( ret.empty() )
ret = unixml->getProp(node, "name"); ret = unixml->getProp(secnode, "name");
return std::move(ret); return std::move(ret);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment