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>
This commit is contained in:
Junio C Hamano 2007-05-16 21:04:16 -07:00
parent d26c4264e5
commit 2eb54efc6c

View File

@ -1114,7 +1114,9 @@ sub git_get_project_description {
open my $fd, "$projectroot/$path/description" or return undef;
my $descr = <$fd>;
close $fd;
if (defined $descr) {
chomp $descr;
}
return $descr;
}