[gtk] tooltip: Avoid some possibly uninitialized values



commit 497d2f8c500f3f01ea26159e9b356140297c3d46
Author: Timm Bäder <mail baedert org>
Date:   Thu Apr 12 08:20:28 2018 +0200

    tooltip: Avoid some possibly uninitialized values

 gtk/gtktooltip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 1f789404f1..dd995082ad 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -1022,7 +1022,7 @@ gtk_tooltip_start_delay (GdkDisplay *display)
 void
 _gtk_tooltip_focus_in (GtkWidget *widget)
 {
-  gint x, y;
+  gint x = 0, y = 0;
   gboolean return_value = FALSE;
   GdkDisplay *display;
   GtkTooltip *tooltip;
@@ -1193,7 +1193,7 @@ gtk_tooltip_handle_event_internal (GdkEventType  event_type,
                                    gdouble       dx,
                                    gdouble       dy)
 {
-  gint x, y;
+  int x = 0, y = 0;
   GtkWidget *has_tooltip_widget;
   GdkDisplay *display;
   GtkTooltip *current_tooltip;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]