summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-25 12:48:52 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-07-25 14:09:21 -0700
commit42217f13efcfd7901636877f020de246d6c58838 (patch)
tree80d7d9a4d7527cf74a01b592f41a494486efac34
parentSubstitute xmalloc()+memset(0) with xcalloc(). (diff)
downloadtgif-42217f13efcfd7901636877f020de246d6c58838.tar.xz
cvsserver: suppress warnings
This patch defines $state->{prependdir} as the empty string, so that quite a few warnings are avoided. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Acked-by: Martin Langhoff <martin@catalyst.net.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-cvsserver.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsserver.perl b/git-cvsserver.perl
index c30ef70427..4bfca1f93c 100755
--- a/git-cvsserver.perl
+++ b/git-cvsserver.perl
@@ -81,7 +81,7 @@ my $methods = {
# $state holds all the bits of information the clients sends us that could
# potentially be useful when it comes to actually _doing_ something.
-my $state = {};
+my $state = { prependdir => '' };
$log->info("--------------- STARTING -----------------");
my $TEMP_DIR = tempdir( CLEANUP => 1 );