summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-09-13 18:37:51 +0300
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-12-18 12:23:57 +0200
commit65b0414775f0674cfb9aff0863a5be8c0d72dfaa (patch)
tree9e5386f37a8999f74378e033f43bc815d5ddada7 /.github
parentde2346e9ba06d15d5839fe0a3b3f61f474c5bedb (diff)
fix: Initialize uninitialized member variables
This commit addresses cppcheck warnings about member variables that are not properly initialized in constructors (uninitMemberVar). Uninitialized member variables can lead to undefined behavior and unpredictable program execution, making this a critical bug fix. Changes made: - kmscube/cube-gles2.cpp: Initialize m_width and m_height to 0 in GlScene constructor to prevent undefined behavior when these values are used - utils/kmstest.cpp: Initialize m_frame_num and m_flip_count to 0 in FlipState constructor to ensure proper frame counting behavior These fixes prevent potential crashes and ensure deterministic behavior by providing proper initial values for all member variables.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions