commit dcf630d

Michael Forney  ·  2014-01-15 12:38:25 +0000 UTC
parent ff31e9d
wayland: Initialize context to NULL

This fixes a crash when called with WLD_ANY
1 files changed,  +1, -1
+1, -1
1@@ -58,7 +58,7 @@ EXPORT
2 struct wld_context * wld_wayland_create_context
3     (struct wl_display * display, enum wld_wayland_interface_id id, ...)
4 {
5-    struct wld_context * context;
6+    struct wld_context * context = NULL;
7     struct wl_event_queue * queue;
8     va_list requested_interfaces;
9     bool interfaces_tried[ARRAY_LENGTH(interfaces)] = {0};