forked from enlightenment/efl
evas cserve - handle possilbe null ref and fentry pointers
this fixes CID 1193209 with possible NULL refs.
This commit is contained in:
parent
3ad7feafe3
commit
c87748a7c1
|
@ -2898,7 +2898,11 @@ cserve2_cache_image_entry_create(Client *client, int rid,
|
|||
if (!ientry)
|
||||
return -1;
|
||||
|
||||
if (!ref)
|
||||
return -1;
|
||||
fentry = _file_entry_find(ref->entry->id);
|
||||
if (!fentry)
|
||||
return -1;
|
||||
fentry->images = eina_list_append(fentry->images, ientry);
|
||||
|
||||
if (opts && opts->scale_load.dst_w && opts->scale_load.dst_h)
|
||||
|
|
Loading…
Reference in New Issue