From: Mike Blumenkrantz Date: Wed, 12 Aug 2015 22:42:42 +0000 (-0400) Subject: init null wl mime types array when new type is offered X-Git-Tag: upstream/0.20.0~378 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f3d59f6f2608ad216840dc5de60e36429da6aa7;p=platform%2Fupstream%2Fenlightenment.git init null wl mime types array when new type is offered --- diff --git a/src/bin/e_comp_wl_data.c b/src/bin/e_comp_wl_data.c index a45c44d..06b17db 100644 --- a/src/bin/e_comp_wl_data.c +++ b/src/bin/e_comp_wl_data.c @@ -93,6 +93,8 @@ _e_comp_wl_data_source_cb_offer(struct wl_client *client EINA_UNUSED, struct wl_ if (!(source = wl_resource_get_user_data(resource))) return; + if (!source->mime_types) + source->mime_types = eina_array_new(1); eina_array_push(source->mime_types, eina_stringshare_add(mime_type)); }