summaryrefslogtreecommitdiffstats
path: root/gitweb
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-05-17 06:04:16 +0200
committerJunio C Hamano <junkio@cox.net>2007-05-17 06:04:16 +0200
commit2eb54efc6c12cb20403db9a4739bd736c3bfaad1 (patch)
tree77097ae369f0b5c2dc7ef8a09b543814c50da986 /gitweb
parentgitweb: Empty patch for merge means trivial merge, not no differences (diff)
downloadgit-2eb54efc6c12cb20403db9a4739bd736c3bfaad1.tar.xz
git-2eb54efc6c12cb20403db9a4739bd736c3bfaad1.zip
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')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 8c688be66d..6f5df9174e 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;
}