Resolve CID 1222223.

This commit is contained in:
Dmitry-Me 2014-08-04 10:00:53 +04:00
parent ab958e7710
commit 8cd6e490d9
1 changed files with 3 additions and 3 deletions

View File

@ -328,9 +328,9 @@ Library::Error Library::load(const tinyxml2::XMLDocument &doc)
else if (strcmp(markupnode->Name(), "codeblocks") == 0) {
for (const tinyxml2::XMLElement *blocknode = markupnode->FirstChildElement(); blocknode; blocknode = blocknode->NextSiblingElement()) {
if (strcmp(blocknode->Name(), "block") == 0) {
const char * name = blocknode->Attribute("name");
if (name)
_executableblocks[extension].addBlock(blocknode->Attribute("name"));
const char * blockName = blocknode->Attribute("name");
if (blockName)
_executableblocks[extension].addBlock(blockName);
} else if (strcmp(blocknode->Name(), "structure") == 0) {
const char * start = blocknode->Attribute("start");
if (start)