Author: senaka Date: Mon Mar 3 14:09:47 2008 New Revision: 633299 URL: http://svn.apache.org/viewvc?rev=633299&view=rev Log: Adding one more fix to suit error cases
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=633299&r1=633298&r2=633299&view=diff ============================================================================== --- webservices/axis2/trunk/c/util/src/uri.c (original) +++ webservices/axis2/trunk/c/util/src/uri.c Mon Mar 3 14:09:47 2008 @@ -390,6 +390,8 @@ /* scheme must be non-empty and followed by :// */ if (s == uri_str || s[0] != ':' || s[1] != '/' || s[2] != '/') { + s = uri_str; /* restart from beginning as the loop must have ended in + * in a wrong place. */ uri->scheme = axutil_strdup(env, "http"); /* if no scheme use HTTP */ goto deal_with_authority; /* backwards predicted taken! */ } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]