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:
parent
d26c4264e5
commit
2eb54efc6c
@ -1114,7 +1114,9 @@ sub git_get_project_description {
|
|||||||
open my $fd, "$projectroot/$path/description" or return undef;
|
open my $fd, "$projectroot/$path/description" or return undef;
|
||||||
my $descr = <$fd>;
|
my $descr = <$fd>;
|
||||||
close $fd;
|
close $fd;
|
||||||
chomp $descr;
|
if (defined $descr) {
|
||||||
|
chomp $descr;
|
||||||
|
}
|
||||||
return $descr;
|
return $descr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user