summaryrefslogtreecommitdiff
path: root/gtk/gtktrayicon-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktrayicon-x11.c')
-rwxr-xr-xgtk/gtktrayicon-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktrayicon-x11.c b/gtk/gtktrayicon-x11.c
index e85ad9c085..16d8bc35c7 100755
--- a/gtk/gtktrayicon-x11.c
+++ b/gtk/gtktrayicon-x11.c
@@ -266,6 +266,7 @@ gtk_tray_icon_send_manager_message (GtkTrayIcon *icon,
XClientMessageEvent ev;
Display *display;
+ memset (&ev, 0, sizeof (ev));
ev.type = ClientMessage;
ev.window = window;
ev.message_type = icon->priv->system_tray_opcode_atom;
@@ -451,6 +452,7 @@ _gtk_tray_icon_send_message (GtkTrayIcon *icon,
xdisplay = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (icon)));
+ memset (&ev, 0, sizeof (ev));
ev.type = ClientMessage;
ev.window = (Window)gtk_plug_get_id (GTK_PLUG (icon));
ev.format = 8;