From 20072918d936d18caf754e58f23878a6dad65c50 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 14 Oct 2020 21:00:18 +0200 Subject: [PATCH] Make sure lValueOfOrdinaryAssignment does not have an undefined value. --- libsolidity/ast/ASTAnnotations.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 0309e28db..25fec855f 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -254,7 +254,7 @@ struct ExpressionAnnotation: ASTAnnotation /// Whether the expression is an lvalue that is only assigned. /// Would be false for --, ++, delete, +=, -=, .... /// Only relevant if isLvalue == true - bool lValueOfOrdinaryAssignment; + bool lValueOfOrdinaryAssignment = false; /// Types and - if given - names of arguments if the expr. is a function /// that is called, used for overload resolution