ecore: null cb function is unacceptable.

@fix
This commit is contained in:
ChunEon Park 2015-06-10 17:45:28 +09:00
parent e644fd6a8c
commit be0c2f5a31
1 changed files with 2 additions and 1 deletions

View File

@ -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;