summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-25 11:17:54 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-25 11:17:54 +0900
commit1b6e3f2611f81aeb16e05812bcb2ab91a72378c2 (patch)
tree6aba62ce76df76d5e918087118a8867222e5f830 /src
parent9ed199d7098098d48778b706d057efa9f3497d58 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/common/evas_tiler.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/common/evas_tiler.c b/src/lib/evas/common/evas_tiler.c
index 91d8fd2ba4..d645d52319 100644
--- a/src/lib/evas/common/evas_tiler.c
+++ b/src/lib/evas/common/evas_tiler.c
@@ -109,7 +109,11 @@ evas_common_tilebuf_get_render_rects(Tilebuf *tb)
109 return NULL; 109 return NULL;
110 } 110 }
111 n = region_rects_num(region2); 111 n = region_rects_num(region2);
112 if (n <= 0) return NULL; 112 if (n <= 0)
113 {
114 region_free(region2);
115 return NULL;
116 }
113 117
114 rbuf = malloc(n * sizeof(Tilebuf_Rect)); 118 rbuf = malloc(n * sizeof(Tilebuf_Rect));
115 if (!rbuf) 119 if (!rbuf)