You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/03 23:09:50 UTC

svn commit: r633299 - /webservices/axis2/trunk/c/util/src/uri.c

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: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org