avoid possible null function pointer

SVN revision: 56087
This commit is contained in:
Mike Blumenkrantz 2011-01-14 03:19:17 +00:00
parent c5b6b33530
commit 3685b112ee
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ _new_va(const char *name,
err = EINA_ERROR_OUT_OF_MEMORY;
mp = calloc(1, sizeof(Eina_Mempool));
if (!mp)
if ((!mp) || (!mp->backend.init))
goto on_error;
/* FIXME why backend is not a pointer? */