evas cache2 - fix coverity CID 1357754

@fix
This commit is contained in:
Carsten Haitzler 2016-07-24 18:18:36 +09:00
parent 71cb445b6c
commit 10f7641dda
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ evas_cache2_image_scale_load(Image_Entry *im,
ret = _evas_cache2_image_entry_new(im->cache2, hkey, NULL, im->file, im->key,
&lo, &error);
if (error != EVAS_LOAD_ERROR_NONE)
if ((!ret) || (error != EVAS_LOAD_ERROR_NONE))
{
ERR("Failed to create scale image entry with error code %d.", error);