Skip to content

Commit

Permalink
gitweb: fix another use of undefined value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed May 17, 2007
1 parent d26c426 commit 2eb54ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2eb54ef

Please sign in to comment.