summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-01-14 03:19:17 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-01-14 03:19:17 +0000
commit3564e97d76d5c77f42d4f82d46e088162634ba69 (patch)
tree8e49da2e932cad063d36a8426a99518b37358f1c
parente5f1fc265726ea9d7409a277b74a794eb3266278 (diff)
avoid possible null function pointer
SVN revision: 56087
-rw-r--r--src/lib/eina_mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina_mempool.c b/src/lib/eina_mempool.c
index b9062be..a44ccb7 100644
--- a/src/lib/eina_mempool.c
+++ b/src/lib/eina_mempool.c
@@ -77,7 +77,7 @@ _new_va(const char *name,
77 77
78 err = EINA_ERROR_OUT_OF_MEMORY; 78 err = EINA_ERROR_OUT_OF_MEMORY;
79 mp = calloc(1, sizeof(Eina_Mempool)); 79 mp = calloc(1, sizeof(Eina_Mempool));
80 if (!mp) 80 if ((!mp) || (!mp->backend.init))
81 goto on_error; 81 goto on_error;
82 82
83 /* FIXME why backend is not a pointer? */ 83 /* FIXME why backend is not a pointer? */