From 1b11867e0ee5c2d9acbe0bb73c9bcd5b10701e52 Mon Sep 17 00:00:00 2001 From: Tobias Markus Date: Mon, 23 Feb 2015 19:08:32 +0100 Subject: [PATCH] Fix for coverity #29369 (another further down) --- external/obstack/obstack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.11.0