diff options
author | Amar Tumballi <amar@gluster.com> | 2010-07-28 03:31:10 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-07-28 03:34:54 -0700 |
commit | 927aedbb556ee07250248181f52642eeb6de9e58 (patch) | |
tree | 034a196708a1c1260951cafeefc42b427bee8479 /libglusterfs/src/stack.h | |
parent | 753146c0ff4b1b55892b71b36d6ca97797867aaa (diff) |
removed last few remaining 'ERR_ABORT's from codebase
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 966 (NULL check for avoiding NULL dereferencing of pointers..)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=966
Diffstat (limited to 'libglusterfs/src/stack.h')
-rw-r--r-- | libglusterfs/src/stack.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libglusterfs/src/stack.h b/libglusterfs/src/stack.h index 1ce46ccdc..6015b8158 100644 --- a/libglusterfs/src/stack.h +++ b/libglusterfs/src/stack.h @@ -184,7 +184,10 @@ STACK_DESTROY (call_stack_t *stack) \ _new = GF_CALLOC (1, sizeof (call_frame_t), \ gf_common_mt_call_frame_t); \ - ERR_ABORT (_new); \ + if (!_new) { \ + gf_log ("stack", GF_LOG_ERROR, "alloc failed"); \ + break; \ + } \ typeof(fn##_cbk) tmp_cbk = rfn; \ _new->root = frame->root; \ _new->next = frame->root->frames.next; \ @@ -219,7 +222,10 @@ STACK_DESTROY (call_stack_t *stack) \ _new = GF_CALLOC (1, sizeof (call_frame_t), \ gf_common_mt_call_frame_t); \ - ERR_ABORT (_new); \ + if (!_new) { \ + gf_log ("stack", GF_LOG_ERROR, "alloc failed"); \ + break; \ + } \ typeof(fn##_cbk) tmp_cbk = rfn; \ _new->root = frame->root; \ _new->next = frame->root->frames.next; \ |