[interchange-cvs] interchange - heins modified lib/Vend/File.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Wed Apr 27 15:26:40 EDT 2005
User: heins
Date: 2005-04-27 19:26:39 GMT
Modified: lib/Vend File.pm
Log:
* Prevent warning on uninitialized variable.
Revision Changes Path
2.17 +3 -3 interchange/lib/Vend/File.pm
rev 2.17, prev_rev 2.16
Index: File.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/File.pm,v
retrieving revision 2.16
retrieving revision 2.17
diff -u -r2.16 -r2.17
--- File.pm 10 Apr 2005 13:36:34 -0000 2.16
+++ File.pm 27 Apr 2005 19:26:39 -0000 2.17
@@ -1,6 +1,6 @@
# Vend::File - Interchange file functions
#
-# $Id: File.pm,v 2.16 2005/04/10 13:36:34 mheins Exp $
+# $Id: File.pm,v 2.17 2005/04/27 19:26:39 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -53,7 +53,7 @@
use Vend::Util;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK $errstr);
-$VERSION = substr(q$Revision: 2.16 $, 10);
+$VERSION = substr(q$Revision: 2.17 $, 10);
sub writefile {
my($file, $data, $opt) = @_;
@@ -232,7 +232,7 @@
if ($wait) {
my $trylimit = $Vend::Cfg->{Limit}{file_lock_retries} || 5;
- my $failedcount;
+ my $failedcount = 0;
while (
! flock($fh, $flag)
and
More information about the interchange-cvs
mailing list