commit dcf630df87f30bd2ea0ebd688c8cb72a58e77eaa
parent ff31e9dedc1a3d7cff57113e3f576518b18e3463
Author: Michael Forney <mforney@mforney.org>
Date: Wed, 15 Jan 2014 04:38:25 -0800
wayland: Initialize context to NULL
This fixes a crash when called with WLD_ANY
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wayland.c b/wayland.c
@@ -58,7 +58,7 @@ EXPORT
struct wld_context * wld_wayland_create_context
(struct wl_display * display, enum wld_wayland_interface_id id, ...)
{
- struct wld_context * context;
+ struct wld_context * context = NULL;
struct wl_event_queue * queue;
va_list requested_interfaces;
bool interfaces_tried[ARRAY_LENGTH(interfaces)] = {0};