axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sen...@apache.org
Subject svn commit: r633943 - /webservices/axis2/trunk/c/util/src/uri.c
Date Wed, 05 Mar 2008 17:40:29 GMT
Author: senaka
Date: Wed Mar  5 09:40:23 2008
New Revision: 633943

URL: http://svn.apache.org/viewvc?rev=633943&view=rev
Log:
Fixing typo

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=633943&r1=633942&r2=633943&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/uri.c (original)
+++ webservices/axis2/trunk/c/util/src/uri.c Wed Mar  5 09:40:23 2008
@@ -658,8 +658,11 @@
         size_t baselen;
         const char *basepath = base->path ? base->path : "/";
         char *path = uri->path;
+        char *temp = NULL;
         const char *base_end = strrchr(basepath, '/');
 
+        temp = path;
+
         /* if base is nonsensical, bail out */
         if (basepath[0] != '/')
         {
@@ -688,9 +691,9 @@
                          sizeof(axis2_char_t) * baselen + strlen(path) + 1);
         memcpy(uri->path, basepath, baselen);
         strcpy(uri->path + baselen, path);
-        if (path)
+        if (temp)
         {
-            AXIS2_FREE(env->allocator, path);
+            AXIS2_FREE(env->allocator, temp);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message