From 5a446284b7e4710e11daf9cf5e412e5fbf18e4b9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 13 Jun 2015 17:49:20 -0400 Subject: [PATCH] Ensure a variable is initialized clang complained about transient_for being used uninitialized. --- gdk/wayland/gdkwindow-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index fded03a518..4c448d70d5 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -1174,7 +1174,7 @@ static void gdk_wayland_window_map (GdkWindow *window) { GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl); - GdkWindow *transient_for; + GdkWindow *transient_for = NULL; if (!should_be_mapped (window)) return;