From 73ffb7f5e952761ebca301f2cd899b4a4f666ea4 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 12 Mar 2018 10:03:54 +0000 Subject: [PATCH] Initialise variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dx and dy variables may be left uninitialized by the coordinate translation — or so the C compiler thinks. Let's avoid a warning when building. --- gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 72766c2c3c..c0b7544a14 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -5814,7 +5814,7 @@ translate_event_coordinates (GdkEvent *event, { GtkWidget *event_widget; double x, y; - double dx, dy; + double dx = 0.0, dy = 0.0; if (!gdk_event_get_coords (event, &x, &y)) return;