[gtk/ci-release] Initialize an out argument
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ci-release] Initialize an out argument
- Date: Tue, 14 Jan 2020 15:18:33 +0000 (UTC)
commit aefa36a80ec67901578a27496f017b2de3613dcb
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Jan 14 15:17:06 2020 +0000
Initialize an out argument
Avoids a compiler error, and undefined values in an error path.
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]