axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r516013 - /webservices/axis2/trunk/c/util/src/file.c
Date Thu, 08 Mar 2007 11:20:17 GMT
Author: dinesh
Date: Thu Mar  8 03:20:08 2007
New Revision: 516013

URL: http://svn.apache.org/viewvc?view=rev&rev=516013
Log:
code formatted, file.c

Modified:
    webservices/axis2/trunk/c/util/src/file.c

Modified: webservices/axis2/trunk/c/util/src/file.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/file.c?view=diff&rev=516013&r1=516012&r2=516013
==============================================================================
--- webservices/axis2/trunk/c/util/src/file.c (original)
+++ webservices/axis2/trunk/c/util/src/file.c Thu Mar  8 03:20:08 2007
@@ -81,6 +81,7 @@
     if (file->name)
     {
         AXIS2_FREE(env->allocator, file->name);
+        file->name = NULL;
     }
     file->name = AXIS2_STRDUP(name, env);
     if (!file->name)
@@ -110,15 +111,15 @@
         axis2_char_t *path)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    if (NULL == path)
+    if (!path)
     {
-        /* path is optional */
         return AXIS2_SUCCESS;
     }
 
     if (file->path)
     {
         AXIS2_FREE(env->allocator, file->path);
+        file->path = NULL;
     }
     file->path = AXIS2_STRDUP(path, env);
     if (!(file->path))
@@ -148,7 +149,6 @@
         const axis2_env_t *env,
         AXIS2_TIME_T timestamp)
 {
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     file->timestamp = timestamp;
     return AXIS2_SUCCESS;
 }



---------------------------------------------------------------------
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