Parser: Fix segfault in command extraction

Este commit está contenido en:
Albert S. 2018-11-05 10:46:06 +01:00
padre 89c662385d
commit f349c7dc00
Se han modificado 1 ficheros con 5 adiciones y 1 borrados

Ver fichero

@ -72,7 +72,11 @@ std::string Parser::extractCommand(std::string cmdname, std::string content) con
if(std::regex_match(content, match, reg))
{
return match.str(2);
if(match.size() > 1)
{
return match.str(2);
}
}
return "";
}