fix coverity complaint (not real bug) - CID 1324882

coverity complained on the n <=- 0 return. it will never be <= 0 if
rects2 is non-null. this just should make coverity less noisy.
This commit is contained in:
Carsten Haitzler 2015-09-25 11:17:54 +09:00
parent 9ed199d709
commit 1b6e3f2611
1 changed files with 5 additions and 1 deletions

View File

@ -109,7 +109,11 @@ evas_common_tilebuf_get_render_rects(Tilebuf *tb)
return NULL;
}
n = region_rects_num(region2);
if (n <= 0) return NULL;
if (n <= 0)
{
region_free(region2);
return NULL;
}
rbuf = malloc(n * sizeof(Tilebuf_Rect));
if (!rbuf)