summaryrefslogtreecommitdiff
path: root/src/lib/ecore
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-08-07 15:16:07 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-08-07 15:18:19 +0100
commit03c2d1c868ea6e492338b4b046dd375d570598f6 (patch)
tree4f8a42535c1ed18f736b2ea3f9c25237e12f0269 /src/lib/ecore
parentd2f8eaf6c89d65cd958c96910eea8befe63333dc (diff)
ecore: Check if eina_inarray_grow return NULL.
We will dereference one line below. CID 1039337
Diffstat (limited to 'src/lib/ecore')
-rw-r--r--src/lib/ecore/ecore_coroutine.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_coroutine.c b/src/lib/ecore/ecore_coroutine.c
index e224556fff..07a277a3af 100644
--- a/src/lib/ecore/ecore_coroutine.c
+++ b/src/lib/ecore/ecore_coroutine.c
@@ -329,6 +329,7 @@ ecore_coroutine_defer(Ecore_Coroutine *coro, Eina_Free_Cb func, void *data)
329 Ecore_Coroutine_Defer *defer; 329 Ecore_Coroutine_Defer *defer;
330 330
331 defer = eina_inarray_grow(&coro->defer, 1); 331 defer = eina_inarray_grow(&coro->defer, 1);
332 if (!defer) return;
332 defer->func = func; 333 defer->func = func;
333 defer->data = data; 334 defer->data = data;
334} 335}