Initialise variables

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.
This commit is contained in:
Emmanuele Bassi 2018-03-12 10:03:54 +00:00
parent a0d2d1f44b
commit 73ffb7f5e9

View File

@ -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;