diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/analysis/expression.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analysis/expression.cpp b/src/analysis/expression.cpp index 54d73c2..2162666 100644 --- a/src/analysis/expression.cpp +++ b/src/analysis/expression.cpp @@ -775,7 +775,9 @@ bool handleSetVarToFunction(const std::string &var, return false; if (findTreeListPurpose(static_cast<TreeListNode*>(func->functionType->attribute), - "returns_nonnull")) + "returns_nonnull") || + func->label == "operator new" || + func->label == "operator new []") { // function have attribute returns_nonnull. This mean result cant be null addNonNullVar(wo, var); } |