summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analysis/expression.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/analysis/expression.cpp b/src/analysis/expression.cpp
index 70b1666..2ea26e6 100644
--- a/src/analysis/expression.cpp
+++ b/src/analysis/expression.cpp
@@ -179,6 +179,11 @@ void analyseModifyExpr(ModifyExprNode *node, const WalkItem &wi, WalkItem &wo)
{
handled = handleSetVarToFunction(var1, arg1, wo);
}
+ else if (arg1 == INTEGER_CST && arg1->label == "0")
+ {
+ addNullVar(wo, var1);
+ handled = true;
+ }
// have var1 only (var1 = UNKNOWN)
if (!handled)
removeVar(wo, var1);