forked from AuroraMiddleware/gtk
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:
parent
a0d2d1f44b
commit
73ffb7f5e9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user