diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-01-04 01:28:07 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-01-04 01:28:07 +0000 |
commit | 1c2718400df991fa1dfaca93d31298001d73e458 (patch) | |
tree | cffc669352d33169f007fa0f4e71633cb702cc4b /gtk/gtktrayicon-x11.c | |
parent | d6b33b2ad531d98e9b895bbac6f791a746345a68 (diff) | |
download | gtk+-1c2718400df991fa1dfaca93d31298001d73e458.tar.gz |
Apply a patch by Chris Wilson to avoid spurious valgrind warnings from
2007-01-03 Matthias Clasen <mclasen@redhat.com>
* gtk/*.c:
* gdk/x11/*.c: Apply a patch by Chris Wilson to
avoid spurious valgrind warnings from XSendEvent()
calls. (#392532)
svn path=/trunk/; revision=17044
Diffstat (limited to 'gtk/gtktrayicon-x11.c')
-rwxr-xr-x | gtk/gtktrayicon-x11.c | 2 |
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; |