init null wl mime types array when new type is offered

This commit is contained in:
Mike Blumenkrantz 2015-08-12 18:42:42 -04:00
parent 3b785403b6
commit 7f3d59f6f2
1 changed files with 2 additions and 0 deletions

View File

@ -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));
}