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