summaryrefslogtreecommitdiff
path: root/headers.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-06-26 14:55:42 +0200
committerIvan Maidanski <ivmai@mail.ru>2012-06-26 14:55:42 +0200
commit94199d1d94e535c1770ce97c73e62107405f9085 (patch)
treea294f9435b05c010146e2b8b1a4f0a240ef382e4 /headers.c
parentf055ed20942e8ab3a9d101d6d77470d54ae968a0 (diff)
parent98176e156503cc43cb9a5ff6d252fff0bdbf7995 (diff)
Merge branch 'gc-7_2-hotfix-2'
Diffstat (limited to 'headers.c')
-rw-r--r--headers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/headers.c b/headers.c
index de82c20..eac3e9f 100644
--- a/headers.c
+++ b/headers.c
@@ -196,6 +196,10 @@ GC_INNER void GC_init_headers(void)
register unsigned i;
GC_all_nils = (bottom_index *)GC_scratch_alloc((word)sizeof(bottom_index));
+ if (GC_all_nils == NULL) {
+ GC_err_printf("Insufficient memory for GC_all_nils\n");
+ EXIT();
+ }
BZERO(GC_all_nils, sizeof(bottom_index));
for (i = 0; i < TOP_SZ; i++) {
GC_top_index[i] = GC_all_nils;