diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-03-19 08:10:08 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2024-03-19 11:42:17 +0300 |
commit | 8a13d9aef40a1094723afa46dccc2ee8b52bd739 (patch) | |
tree | 7e799ce35ef5ec299d9cacc0c81a8550484cd259 /src/kernel | |
parent | 1938504ea0884a1099dabf7fc1888af7925713f3 (diff) | |
download | tqt3-8a13d9aef40a1094723afa46dccc2ee8b52bd739.tar.gz tqt3-8a13d9aef40a1094723afa46dccc2ee8b52bd739.zip |
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 <fatzer2@gmail.com>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/qapplication_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |