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 du...@apache.org on 2007/03/06 06:17:27 UTC

svn commit: r514980 - in /webservices/axis2/trunk/c: include/axis2_msg_info_headers.h modules/core/addr/msg_info_headers.c

Author: dushshantha
Date: Mon Mar  5 21:17:25 2007
New Revision: 514980

URL: http://svn.apache.org/viewvc?view=rev&rev=514980
Log:
revert the strdup change to avoid the segfault

Modified:
    webservices/axis2/trunk/c/include/axis2_msg_info_headers.h
    webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c

Modified: webservices/axis2/trunk/c/include/axis2_msg_info_headers.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_msg_info_headers.h?view=diff&rev=514980&r1=514979&r2=514980
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_msg_info_headers.h (original)
+++ webservices/axis2/trunk/c/include/axis2_msg_info_headers.h Mon Mar  5 21:17:25 2007
@@ -327,7 +327,7 @@
     AXIS2_EXTERN axis2_status_t AXIS2_CALL
     axis2_msg_info_headers_set_action(struct axis2_msg_info_headers *msg_info_headers,
         const axis2_env_t *env,
-        const axis2_string_t *action);
+        const axis2_char_t *action);
 
     /**
      * Gets message ID. message ID is an absolute IRI that uniquely 

Modified: webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c?view=diff&rev=514980&r1=514979&r2=514980
==============================================================================
--- webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c (original)
+++ webservices/axis2/trunk/c/modules/core/addr/msg_info_headers.c Mon Mar  5 21:17:25 2007
@@ -190,7 +190,7 @@
 axis2_status_t AXIS2_CALL
 axis2_msg_info_headers_set_action(struct axis2_msg_info_headers *msg_info_headers,
     const axis2_env_t *env,
-    const axis2_string_t *action)
+    const axis2_char_t *action)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     if (msg_info_headers->action)
@@ -199,7 +199,9 @@
         msg_info_headers->action = NULL;
     }
     if (action)
-        msg_info_headers->action = axis2_string_clone(action, env);
+	{
+        msg_info_headers->action = AXIS2_STRDUP(action, env);
+	}
     return AXIS2_SUCCESS;
 }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org