Merge pull request #385 from Dmitry-Me/resolveIssue1222223
Resolve CID 1222223.
This commit is contained in:
commit
f2fdc4fb14
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue