From 02ac7ff0aab816a35ce362c7847959db8f736bd7 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 29 Jan 2020 11:34:11 +0100 Subject: [PATCH] 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);