]> mj.ucw.cz Git - libucw.git/commitdiff
HashTables:
authorPavel Charvat <pavel.charvat@netcentrum.cz>
Wed, 5 Dec 2007 09:33:05 +0000 (10:33 +0100)
committerPavel Charvat <pavel.charvat@netcentrum.cz>
Wed, 5 Dec 2007 09:33:05 +0000 (10:33 +0100)
The allocator should be initialized before we make the initial array allocation.

lib/hashtable.h

index 4dc223fec61b4c0f31adbdfb310d11dfb2dde8c2..5002f8062e65e7531959ea51d9fd2c6256a87adf 100644 (file)
@@ -401,8 +401,8 @@ static void P(init) (TA)
 #else
   T.hash_hard_max = 1 << 28;
 #endif
-  P(alloc_table)(TT);
   P(init_alloc)(TT);
+  P(alloc_table)(TT);
 }
 
 #ifdef HASH_WANT_CLEANUP