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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]