2008-02-25 Hans Boehm <Hans.Boehm@hp.com>
authorhboehm <hboehm>
Tue, 26 Feb 2008 06:09:07 +0000 (06:09 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 26 Jul 2011 17:06:42 +0000 (21:06 +0400)
* finalize.c (GC_grow_table): Dereference table in null-check.

ChangeLog
finalize.c

index 980809b..a078479 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-25  Hans Boehm <Hans.Boehm@hp.com>
+
+       * finalize.c (GC_grow_table): Dereference table in null-check.
+
 2008-02-24  Hans Boehm <Hans.Boehm@hp.com>
 
        * win32_threads.c (GC_delete_gc_thread, GC_delete_thread):
index 259cd84..8587fae 100644 (file)
@@ -114,7 +114,7 @@ void GC_grow_table(struct hash_chain_entry ***table,
                (size_t)new_size * sizeof(struct hash_chain_entry *), NORMAL);
     
     if (new_table == 0) {
-       if (table == 0) {
+       if (*table == 0) {
            ABORT("Insufficient space for initial table allocation");
        } else {
            return;