CLI: don't crash if summary in rule file is empty
This commit is contained in:
parent
02a2551282
commit
de2f959312
|
@ -627,7 +627,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
|
||||||
|
|
||||||
tinyxml2::XMLElement *summary = message->FirstChildElement("summary");
|
tinyxml2::XMLElement *summary = message->FirstChildElement("summary");
|
||||||
if (summary)
|
if (summary)
|
||||||
rule.summary = summary->GetText();
|
rule.summary = summary->GetText() ? summary->GetText() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rule.pattern.empty())
|
if (!rule.pattern.empty())
|
||||||
|
|
Loading…
Reference in New Issue