[gtk+] Silence a compiler warning



commit 7fe65108002fac4381a8394ee5b5bda3e653b898
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu May 26 12:45:51 2016 +0100

    Silence a compiler warning
    
    Initialize the `nearest` variable.

 gdk/gdkdisplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 884e2db..6b23eea 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -2628,7 +2628,7 @@ gdk_display_get_monitor_at_point (GdkDisplay *display,
                                   int         x,
                                   int         y)
 {
-  GdkMonitor *nearest;
+  GdkMonitor *nearest = NULL;
   int nearest_dist = G_MAXINT;
   int n_monitors, i;
 


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