You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/03/22 05:51:40 UTC

svn commit: r387714 - /webservices/axis2/trunk/c/test/unit/util/util_hash_test.c

Author: samisa
Date: Tue Mar 21 20:51:38 2006
New Revision: 387714

URL: http://svn.apache.org/viewcvs?rev=387714&view=rev
Log:
Fixed the bug that caused seg fault

Modified:
    webservices/axis2/trunk/c/test/unit/util/util_hash_test.c

Modified: webservices/axis2/trunk/c/test/unit/util/util_hash_test.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/test/unit/util/util_hash_test.c?rev=387714&r1=387713&r2=387714&view=diff
==============================================================================
--- webservices/axis2/trunk/c/test/unit/util/util_hash_test.c (original)
+++ webservices/axis2/trunk/c/test/unit/util/util_hash_test.c Tue Mar 21 20:51:38 2006
@@ -26,20 +26,15 @@
     const char *key1 = "key1";
 
     actual = (a *) AXIS2_MALLOC(environment->allocator, sizeof (a));
-
-
     actual->value = AXIS2_STRDUP("value1", &environment);
 
-
     ht = axis2_hash_make (&environment);
 
-    axis2_hash_set (ht, &key1, AXIS2_HASH_KEY_STRING, actual);
+    axis2_hash_set (ht, key1, AXIS2_HASH_KEY_STRING, actual);
 
     for (i = axis2_hash_first (ht, &environment); i; i = axis2_hash_next (&environment, i))
     {
-
         axis2_hash_this (i, NULL, NULL, &v);
-
     }
 
     expected = (a *) axis2_hash_get (ht, key1, AXIS2_HASH_KEY_STRING);