Skip to content

Commit 1fe3d95

Browse files
Update valueflow.cpp
1 parent 49f7cd2 commit 1fe3d95

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/valueflow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4099,6 +4099,8 @@ static bool isVariableInit(const Token *tok)
40994099
return false;
41004100
if (var->nameToken() != tok->astOperand1())
41014101
return false;
4102+
if (var->isPointer())
4103+
return true;
41024104
const ValueType* vt = var->valueType();
41034105
if (!vt)
41044106
return false;

0 commit comments

Comments
 (0)