You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/02/10 05:36:25 UTC

svn commit: r376543 - /webservices/axis2/trunk/c/modules/util/hash.c

Author: sahan
Date: Thu Feb  9 20:36:23 2006
New Revision: 376543

URL: http://svn.apache.org/viewcvs?rev=376543&view=rev
Log:
Fixed the crash in hash map in the proper way

Modified:
    webservices/axis2/trunk/c/modules/util/hash.c

Modified: webservices/axis2/trunk/c/modules/util/hash.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/hash.c?rev=376543&r1=376542&r2=376543&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/hash.c (original)
+++ webservices/axis2/trunk/c/modules/util/hash.c Thu Feb  9 20:36:23 2006
@@ -180,9 +180,8 @@
 
     new_max = ht->max * 2 + 1;
     new_array = alloc_array (ht, new_max);
-    env = &(ht->environment);
-    for (hi = axis2_hash_first (ht, env); hi;
-         hi = axis2_hash_next (env , hi))
+    for (hi = axis2_hash_first (ht, NULL); hi;
+         hi = axis2_hash_next (NULL, hi))
     {
         unsigned int i = hi->this->hash & new_max;
         hi->this->next = new_array[i];