diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 5383b4c78..67f57f51e 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -5455,7 +5455,7 @@ static void valueFlowSafeFunctions(TokenList *tokenlist, SymbolDatabase *symbold if (!arg.nameToken()) continue; - if (arg.nameToken()->valueType() && arg.nameToken()->valueType()->type == ValueType::Type::CONTAINER) { + if (arg.valueType() && arg.valueType()->type == ValueType::Type::CONTAINER) { if (!safe) continue; std::list argValues;