@matheusbsbs / matheus-bagliano / commits / 2eb54efc6c
Fork 0

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>

Junio C Hamano committed May 16, 2007 at 21:04 UTC 2eb54efc6c12cb20403db9a4739bd736c3bfaad1
1 file changed +3 -1
gitweb/gitweb.perl
+3 -1
@@ -1114,7 +1114,9 @@ sub git_get_project_description {
1114 open my $fd, "$projectroot/$path/description" or return undef;
1115 my $descr = <$fd>;
1116 close $fd;
1117 - chomp $descr;
1117 + if (defined $descr) {
1118 + chomp $descr;
1119 + }
1120 return $descr;
1121 }
1122