Resolve CID 1222223.
This commit is contained in:
parent
ab958e7710
commit
8cd6e490d9
|
@ -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