aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorChunEon Park <chuneon.park@samsung.com>2015-06-10 17:45:28 +0900
committerChunEon Park <chuneon.park@samsung.com>2015-06-10 17:46:31 +0900
commitbe0c2f5a317cda9ff836c680af11ea5d8aa76294 (patch)
tree0b64faecc031645ccf8caff8387ba9a72cc8e591 /src/lib/ecore/ecore.c
parentevas/render2: Put evas_render2_th_main.c in EXTRA_DIST to ship it in the tarball (diff)
downloadefl-be0c2f5a317cda9ff836c680af11ea5d8aa76294.tar.gz
ecore: null cb function is unacceptable.
@fix
Diffstat (limited to 'src/lib/ecore/ecore.c')
-rw-r--r--src/lib/ecore/ecore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index 298e685d97..f94584d6d8 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -448,7 +448,8 @@ EAPI Eina_Bool
ecore_fork_reset_callback_add(Ecore_Cb func, const void *data)
{
Ecore_Fork_Cb *fcb;
-
+
+ if (!func) return EINA_FALSE;
fcb = calloc(1, sizeof(Ecore_Fork_Cb));
if (!fcb) return EINA_FALSE;
fcb->func = func;