Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 30304 invoked from network); 8 Mar 2007 11:20:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 11:20:40 -0000 Received: (qmail 66700 invoked by uid 500); 8 Mar 2007 11:20:48 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 66615 invoked by uid 500); 8 Mar 2007 11:20:47 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 66604 invoked by uid 500); 8 Mar 2007 11:20:47 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 66601 invoked by uid 99); 8 Mar 2007 11:20:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 03:20:47 -0800 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 03:20:38 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 18D0C1A9838; Thu, 8 Mar 2007 03:20:17 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r516013 - /webservices/axis2/trunk/c/util/src/file.c Date: Thu, 08 Mar 2007 11:20:17 -0000 To: axis2-cvs@ws.apache.org From: dinesh@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070308112018.18D0C1A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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