projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ad6f6
)
Fix for coverity #29369 (another further down)
author
Tobias Markus
<tobbi@mozilla-uk.org>
Mon, 23 Feb 2015 18:08:32 +0000
(19:08 +0100)
committer
Tobias Markus
<tobbi@mozilla-uk.org>
Mon, 23 Feb 2015 18:08:32 +0000
(19:08 +0100)
external/obstack/obstack.c
patch
|
blob
|
history
diff --git
a/external/obstack/obstack.c
b/external/obstack/obstack.c
index
15e2bc1
..
d4da534
100644
(file)
--- 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;