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:
parent
9ed199d709
commit
1b6e3f2611
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue