Merge pull request #385 from Dmitry-Me/resolveIssue1222223

Resolve CID 1222223.
This commit is contained in:
Daniel Marjamäki 2014-08-05 17:48:04 +02:00
commit f2fdc4fb14
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)