diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index e3ceb0e15..15066f3e1 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -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); {