]> Pileus Git - ~andy/gtk/commitdiff
Avoid uninitialized memory warnings
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 7 Oct 2008 18:06:00 +0000 (18:06 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 7 Oct 2008 18:06:00 +0000 (18:06 +0000)
svn path=/trunk/; revision=21603

ChangeLog
gtk/gtktooltip.c

index 3d86438fe8249cea4f5eee06bdccedc4c1f725d9..d003bcf0e0efe28a53f5a7a380dfca8474f31184 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-06  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktooltip.c (gtk_tooltip_show_tooltip): Avoid unitialized
+       memory warnings from valgrind.
+
 2008-10-07 11:03:30  Tim Janik  <timj@imendio.com>
 
        * gtk/gtkbox.h: keep GtkBox as an abstract type and keep _gtk_box_new()
index 9d6f94f38dec3160ce7705cd95f337762fe7389c..06daaa08e8e31c2847647be195a6173792ebef48 100644 (file)
@@ -911,6 +911,7 @@ gtk_tooltip_show_tooltip (GdkDisplay *display)
 
   if (tooltip->keyboard_mode_enabled)
     {
+      x = y = -1;
       pointer_widget = tooltip_widget = tooltip->keyboard_widget;
     }
   else