Skip to content
Snippets Groups Projects
Commit 88d186b0 authored by yanmorin's avatar yanmorin
Browse files

Don't compare iterator to null
parent 53d85683
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ ConfigTree::addConfigTreeItem(const std::string& section, const ConfigTreeItem i
iter = _sections.find(section);
}
// be prudent here
if (iter != NULL && iter != _sections.end()) {
if (iter != _sections.end()) {
std::string name = item.getName();
if ( iter->second->find(name) == iter->second->end()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment