From c45493096644843cccd156d2ff85b67f7b63ae37 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 17 Oct 2024 14:17:39 +0200 Subject: FLUID: Fixes uninitialized class member --- fluid/Fl_Type.cxx | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index 5847fbddc..eada84e5e 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -489,30 +489,33 @@ void update_visibility_flag(Fl_Type *p) { Constructor and base for any node in the widget tree. */ Fl_Type::Fl_Type() : -uid_(0), -code_static_start(-1), code_static_end(-1), -code1_start(-1), code1_end(-1), -code2_start(-1), code2_end(-1), -header1_start(-1), header1_end(-1), -header2_start(-1), header2_end(-1), -header_static_start(-1), header_static_end(-1), -proj1_start(-1), proj1_end(-1), -proj2_start(-1), proj2_end(-1) + name_(NULL), + label_(NULL), + callback_(NULL), + user_data_(NULL), + user_data_type_(NULL), + comment_(NULL), + uid_(0), + parent(NULL), + new_selected(0), + selected(0), + folded_(0), + visible(0), + level(0), + next(NULL), prev(NULL), + factory(NULL), + code_static_start(-1), code_static_end(-1), + code1_start(-1), code1_end(-1), + code2_start(-1), code2_end(-1), + header1_start(-1), header1_end(-1), + header2_start(-1), header2_end(-1), + header_static_start(-1), header_static_end(-1), + proj1_start(-1), proj1_end(-1), + proj2_start(-1), proj2_end(-1) { - factory = 0; - parent = 0; - next = prev = 0; - selected = new_selected = 0; - visible = 0; - name_ = 0; - label_ = 0; - user_data_ = 0; - user_data_type_ = 0; - callback_ = 0; - comment_ = 0; - level = 0; } + /** Destructor for any node in the tree. -- cgit v1.2.3