diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2024-03-17 15:01:34 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2024-03-19 11:42:10 +0300 |
commit | 1938504ea0884a1099dabf7fc1888af7925713f3 (patch) | |
tree | f5a80de98bd1da94200865290b7efb15a9189842 | |
parent | b1e6f384640525c5a0caceef017848f8ebee46b8 (diff) | |
download | tqt3-1938504ea0884a1099dabf7fc1888af7925713f3.tar.gz tqt3-1938504ea0884a1099dabf7fc1888af7925713f3.zip |
Zero padding bytes in DndReceiverProp struct.
This removes valgrind's complains about accessing uninitialized memory.
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
-rw-r--r-- | src/kernel/qmotifdnd_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/qmotifdnd_x11.cpp b/src/kernel/qmotifdnd_x11.cpp index a95ed8d54..d11065835 100644 --- a/src/kernel/qmotifdnd_x11.cpp +++ b/src/kernel/qmotifdnd_x11.cpp @@ -387,7 +387,7 @@ static void DndReadSourceProperty(Display * dpy, static void DndWriteReceiverProperty(Display * dpy, Window window, unsigned char protocol_style) { - DndReceiverProp receiver_prop ; + DndReceiverProp receiver_prop = {}; receiver_prop.byte_order = DndByteOrder() ; receiver_prop.protocol_version = DND_PROTOCOL_VERSION; |