]> granicus.if.org Git - gc/commitdiff
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 980809b911f20668b27929f85fefe327b101eb00..a078479711746e0c31597c20ffd2e60d9add5c13 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 259cd84fff10e7c0e775b0bc71c53a9c1ace98b9..8587fae8394ec93a2d2486c6304149cf8a31f619 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;