From: Junio C Hamano Date: Thu, 17 May 2007 04:04:16 +0000 (-0700) Subject: gitweb: fix another use of undefined value X-Git-Tag: v1.5.2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2eb54efc6c12cb20403db9a4739bd736c3bfaad1;p=git.git 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 --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8c688be66..6f5df9174 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; }