Silence a compiler warning

Initialize the `nearest` variable.
This commit is contained in:
Emmanuele Bassi 2016-05-26 12:45:51 +01:00
parent fcd3321fa7
commit 7fe6510800

View File

@ -2628,7 +2628,7 @@ gdk_display_get_monitor_at_point (GdkDisplay *display,
int x, int x,
int y) int y)
{ {
GdkMonitor *nearest; GdkMonitor *nearest = NULL;
int nearest_dist = G_MAXINT; int nearest_dist = G_MAXINT;
int n_monitors, i; int n_monitors, i;