CLI: don't crash if summary in rule file is empty

This commit is contained in:
Daniel Marjamäki 2013-07-06 12:01:46 +02:00
parent 02a2551282
commit de2f959312
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
tinyxml2::XMLElement *summary = message->FirstChildElement("summary");
if (summary)
rule.summary = summary->GetText();
rule.summary = summary->GetText() ? summary->GetText() : "";
}
if (!rule.pattern.empty())