From 8a13d9aef40a1094723afa46dccc2ee8b52bd739 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Tue, 19 Mar 2024 08:10:08 +0300 Subject: Zero unused data fields in XClientMessageEvent struct valgrind was complaining about access to uninitialized data because unused elements in client_message.data.l array weren't set o any value. Signed-off-by: Alexander Golubev --- src/kernel/qapplication_x11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel') diff --git a/src/kernel/qapplication_x11.cpp b/src/kernel/qapplication_x11.cpp index f5f2701ad..0148f8760 100644 --- a/src/kernel/qapplication_x11.cpp +++ b/src/kernel/qapplication_x11.cpp @@ -5806,7 +5806,7 @@ void qt_insert_sip( TQWidget* scrolled_widget, int dx, int dy ) TQScrollInProgress* sip = new TQScrollInProgress( scrolled_widget, dx, dy ); sip_list->append( sip ); - XClientMessageEvent client_message; + XClientMessageEvent client_message = {}; client_message.type = ClientMessage; client_message.window = scrolled_widget->winId(); client_message.format = 32; -- cgit v1.2.1