Zero padding bytes in DndReceiverProp struct.

This removes valgrind's complains about accessing uninitialized memory.

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
pull/133/head
Alexander Golubev 2 months ago
parent b1e6f38464
commit 1938504ea0

@ -387,7 +387,7 @@ static void DndReadSourceProperty(Display * dpy,
static void DndWriteReceiverProperty(Display * dpy, Window window, static void DndWriteReceiverProperty(Display * dpy, Window window,
unsigned char protocol_style) unsigned char protocol_style)
{ {
DndReceiverProp receiver_prop ; DndReceiverProp receiver_prop = {};
receiver_prop.byte_order = DndByteOrder() ; receiver_prop.byte_order = DndByteOrder() ;
receiver_prop.protocol_version = DND_PROTOCOL_VERSION; receiver_prop.protocol_version = DND_PROTOCOL_VERSION;

Loading…
Cancel
Save