Fix an memory overrun

This was detected by gccs address sanitizer.
This commit is contained in:
Matthias Clasen 2016-02-26 13:08:45 -05:00
parent 3084eca14b
commit 9f37557ffc

View File

@ -392,6 +392,7 @@ _gdk_wayland_display_prepare_cursor_themes (GdkWaylandDisplay *display_wayland)
OnHasGlobalsClosure *closure;
static const char *required_cursor_theme_globals[] = {
"wl_shm",
NULL
};
closure = g_new0 (OnHasGlobalsClosure, 1);