Author: senaka Date: Wed Mar 5 12:12:18 2008 New Revision: 634012 URL: http://svn.apache.org/viewvc?rev=634012&view=rev Log: Fixing bug in setting scheme
Modified: webservices/axis2/trunk/c/util/src/uri.c Modified: webservices/axis2/trunk/c/util/src/uri.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/uri.c?rev=634012&r1=634011&r2=634012&view=diff ============================================================================== --- webservices/axis2/trunk/c/util/src/uri.c (original) +++ webservices/axis2/trunk/c/util/src/uri.c Wed Mar 5 12:12:18 2008 @@ -400,6 +400,11 @@ /* scheme must be non-empty and followed by :// */ if (s == uri_str || s[0] != ':' || s[1] != '/' || s[2] != '/') { + if (uri->scheme) + { + AXIS2_FREE(env->allocator, uri->scheme); + uri->scheme = NULL; + } s = uri_str; /* restart from beginning as the loop must have ended in * in a wrong place. */ goto deal_with_authority; /* backwards predicted taken! */ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]