summaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-17 04:04:16 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-05-17 04:04:16 (GMT)
commit2eb54efc6c12cb20403db9a4739bd736c3bfaad1 (patch)
tree77097ae369f0b5c2dc7ef8a09b543814c50da986 /gitweb/gitweb.perl
parentd26c4264e584a1a8cbadbc161fa52cf947f5230a (diff)
downloadgit-2eb54efc6c12cb20403db9a4739bd736c3bfaad1.zip
git-2eb54efc6c12cb20403db9a4739bd736c3bfaad1.tar.gz
git-2eb54efc6c12cb20403db9a4739bd736c3bfaad1.tar.bz2
gitweb: fix another use of undefined value
Pasky and Jakub competed fixing these and in the confusion this ended up not being covered. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 8c688be..6f5df91 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1114,7 +1114,9 @@ sub git_get_project_description {
open my $fd, "$projectroot/$path/description" or return undef;
my $descr = <$fd>;
close $fd;
- chomp $descr;
+ if (defined $descr) {
+ chomp $descr;
+ }
return $descr;
}