From c237b956070bfb63511d865b0053509b16fa85a3 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 5 Jan 2024 12:40:42 +0100 Subject: ccplus: initialize memory to zero. Signed-off-by: Amlal El Mahrouss --- CompilerDriver/ccplus.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CompilerDriver') diff --git a/CompilerDriver/ccplus.cc b/CompilerDriver/ccplus.cc index bf6df0b..4cfd9de 100644 --- a/CompilerDriver/ccplus.cc +++ b/CompilerDriver/ccplus.cc @@ -336,8 +336,8 @@ public: struct scope_type { std::vector vals; - int reg_cnt; - int id; + int reg_cnt{ 0 }; + int id{ 0 }; bool operator==(const scope_type& typ) { return typ.id == id; } }; -- cgit v1.2.3