[gtk/ci-jobs] Initialise out variable



commit 982a0c975d0eadafe6247d45c8518ec5ef88d428
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jan 29 11:34:11 2020 +0100

    Initialise out variable
    
    Otherwise we might return an undefined value, and the compiler will be
    very cross at us.

 gdk/broadway/gdkdevice-broadway.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/broadway/gdkdevice-broadway.c b/gdk/broadway/gdkdevice-broadway.c
index 801b021c56..52ffa719db 100644
--- a/gdk/broadway/gdkdevice-broadway.c
+++ b/gdk/broadway/gdkdevice-broadway.c
@@ -303,7 +303,7 @@ gdk_broadway_device_surface_at_position (GdkDevice       *device,
                                          GdkModifierType *mask,
                                          gboolean         get_toplevel)
 {
-  GdkSurface *surface;
+  GdkSurface *surface = NULL;
 
   gdk_broadway_device_query_state (device, NULL, &surface, NULL, NULL, win_x, win_y, mask);
 


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