summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analysis/expression.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/expression.cpp b/src/analysis/expression.cpp
index 96d84e1..4d4c429 100644
--- a/src/analysis/expression.cpp
+++ b/src/analysis/expression.cpp
@@ -91,7 +91,7 @@ std::string getComponentRefVariable(Node *node)
{
IndirectRefNode *indirect = static_cast<IndirectRefNode*>(object);
Node *ref = skipNop(indirect->ref);
- if (ref == PARM_DECL)
+ if (ref == PARM_DECL || ref == VAR_DECL)
{
str.append(ref->label).append("->").append(field->label);
}
@@ -482,6 +482,8 @@ void analyseCallExpr(CallExprNode *node, const WalkItem &wi, WalkItem &wo)
else
{
reportParmDeclNullPointer(node, node->function, wi);
+ if (!getVariableName(node->function).empty())
+ enableCheck = false;
}
}
FOR_EACH (std::vector<Node*>::const_iterator, it, node->args)