forked from enlightenment/enlightenment
comp wl - fix check of source mime types
we dont always assume it's there. fix CID 1403939
This commit is contained in:
parent
33ef4bc881
commit
490e532aa3
|
@ -999,7 +999,7 @@ e_comp_wl_data_device_send_enter(E_Client *ec)
|
||||||
d2 = d3 = d4 = 0;
|
d2 = d3 = d4 = 0;
|
||||||
source = e_comp_wl->drag_source;
|
source = e_comp_wl->drag_source;
|
||||||
|
|
||||||
if (eina_array_count(source->mime_types) > 3)
|
if ((source->mime_types) && (eina_array_count(source->mime_types) > 3))
|
||||||
{
|
{
|
||||||
const char *type, *types[eina_array_count(source->mime_types)];
|
const char *type, *types[eina_array_count(source->mime_types)];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
Loading…
Reference in New Issue