valueFlowLibraryFunction: fix crash found with daca@home

This commit is contained in:
Daniel Marjamäki 2018-11-11 16:41:01 +01:00
parent 3f55707b30
commit bdd4623124
1 changed files with 2 additions and 0 deletions

View File

@ -3771,6 +3771,8 @@ static void valueFlowLibraryFunction(Token *tok, const std::string &returnValue,
if (argValues.back().empty())
return;
}
if (returnValue.find("arg") != std::string::npos && argValues.empty())
return;
TokenList tokenList(settings);
{