diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-03-19 08:10:08 +0300 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-03-19 19:11:54 +0900 |
commit | ba566100303033554bf9b9583edb6196733eb115 (patch) | |
tree | a2b903e3f577f6d6da90df96eaa93afc4de8b89c | |
parent | 323382b1896ae350cf5d6b10949c647e4465b3b9 (diff) | |
download | tqt3-ba566100303033554bf9b9583edb6196733eb115.tar.gz tqt3-ba566100303033554bf9b9583edb6196733eb115.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>
(cherry picked from commit 8a13d9aef40a1094723afa46dccc2ee8b52bd739)
-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; |