Skip to content

Commit 4272487

Browse files
Update valueflow.cpp
1 parent 87eac7a commit 4272487

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/valueflow.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5990,7 +5990,7 @@ static bool needsInitialization(const Variable* var)
59905990
return true;
59915991
if (var->valueType()->type == ValueType::Type::ITERATOR)
59925992
return true;
5993-
if (var->isStlType() && var->isArray()) {
5993+
if (var->isArray() && var->getTypeName() == "std::array") {
59945994
if (const Token* ctt = var->valueType()->containerTypeToken) {
59955995
if (ctt->isStandardType())
59965996
return true;

0 commit comments

Comments
 (0)