From: Tobias Markus Date: Mon, 23 Feb 2015 18:08:32 +0000 (+0100) Subject: Fix for coverity #29369 (another further down) X-Git-Url: https://git.octo.it/?p=supertux.git;a=commitdiff_plain;h=1b11867e0ee5c2d9acbe0bb73c9bcd5b10701e52 Fix for coverity #29369 (another further down) --- diff --git a/external/obstack/obstack.c b/external/obstack/obstack.c index 15e2bc1ea..d4da53455 100644 --- a/external/obstack/obstack.c +++ b/external/obstack/obstack.c @@ -223,8 +223,10 @@ _obstack_newchunk (struct obstack *h, int length) /* Allocate and initialize the new chunk. */ new_chunk = CALL_CHUNKFUN (h, new_size); - if (!new_chunk) + if (!new_chunk) { (*obstack_alloc_failed_handler) (); + return; + } h->chunk = new_chunk; new_chunk->prev = old_chunk; new_chunk->limit = h->chunk_limit = (char *) new_chunk + new_size;