Skip to content

Commit

Permalink
Fix for coverity #29369
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 23, 2015
1 parent 50c7340 commit c10218e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external/obstack/obstack.c
Expand Up @@ -136,8 +136,10 @@ _obstack_begin (struct obstack *h,
h->use_extra_arg = 0;

chunk = h->chunk = CALL_CHUNKFUN (h, h -> chunk_size);
if (!chunk)
if (!chunk) {
(*obstack_alloc_failed_handler) ();
return 0;
}
h->next_free = h->object_base = __PTR_ALIGN ((char *) chunk, chunk->contents,
alignment - 1);
h->chunk_limit = chunk->limit
Expand Down

0 comments on commit c10218e

Please sign in to comment.