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/05 21:12:23 UTC

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

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