axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sen...@apache.org
Subject svn commit: r634019 - /webservices/axis2/trunk/c/util/src/url.c
Date Wed, 05 Mar 2008 20:38:52 GMT
Author: senaka
Date: Wed Mar  5 12:38:49 2008
New Revision: 634019

URL: http://svn.apache.org/viewvc?rev=634019&view=rev
Log:
The port of a url is defined only if there is a host

Modified:
    webservices/axis2/trunk/c/util/src/url.c

Modified: webservices/axis2/trunk/c/util/src/url.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/url.c?rev=634019&r1=634018&r2=634019&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/url.c (original)
+++ webservices/axis2/trunk/c/util/src/url.c Wed Mar  5 12:38:49 2008
@@ -53,11 +53,15 @@
     url->protocol = axutil_strdup(env, protocol);
     url->server = NULL;
     url->path = NULL;
-    url->port = port;
 
     if (server)
     {
         url->server = (axis2_char_t *) axutil_strdup(env, server);
+        url->port = port;
+    }
+    else
+    {
+        url->port = 0;
     }
 
     /** if the path is not starting with / we have to make it so



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


Mime
View raw message