axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r732977 - /webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c
Date Fri, 09 Jan 2009 08:33:48 GMT
Author: shankar
Date: Fri Jan  9 00:33:48 2009
New Revision: 732977

URL: http://svn.apache.org/viewvc?rev=732977&view=rev
Log:
Fixing a crash when using libcurl

Modified:
    webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c?rev=732977&r1=732976&r2=732977&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c Fri Jan
 9 00:33:48 2009
@@ -827,7 +827,7 @@
     const axutil_env_t * env)
 {
     axis2_http_header_t *tmp_header;
-    axis2_char_t *rtn_value	= AXIS2_HTTP_HEADER_ACCEPT_TEXT_PLAIN;
+    axis2_char_t *rtn_value	= NULL;
 
     tmp_header = axis2_libcurl_get_first_header
         (curl, env, AXIS2_HTTP_HEADER_CONTENT_TYPE);
@@ -836,6 +836,10 @@
         rtn_value = axutil_strdup (env, axis2_http_header_get_value(tmp_header, env) );
         axis2_http_header_free( tmp_header, env );
     }
+    else
+    {
+        rtn_value = axutil_strdup (env, AXIS2_HTTP_HEADER_ACCEPT_TEXT_PLAIN);
+    }
 
     return rtn_value;
 }



Mime
View raw message