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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]