Merge branch 'master' into next
authorJunio C Hamano <junkio@cox.net>
Tue, 23 May 2006 23:31:05 +0000 (16:31 -0700)
committerJunio C Hamano <junkio@cox.net>
Tue, 23 May 2006 23:31:05 +0000 (16:31 -0700)
* master:
  cvsimport: do not barf on creation of an empty file.

git-cvsimport.perl

index 41ee9a6..60fc86a 100755 (executable)
@@ -371,7 +371,7 @@ sub file {
 }
 sub _fetchfile {
        my ($self, $fh, $cnt) = @_;
-       my $res;
+       my $res = 0;
        my $bufsize = 1024 * 1024;
        while($cnt) {
            if ($bufsize > $cnt) {