]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: fix another use of undefined value
authorJunio C Hamano <redacted>
Thu, 17 May 2007 04:04:16 +0000 (21:04 -0700)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
Pasky and Jakub competed fixing these and in the confusion this ended up
not being covered.

Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index 6934d1b1042a7dde26917bf11287428605674177b9d1ea4558b5877ce41bd27c..31152980df847bdabc4078b741d3e4910c40f883fce3ac2854e7a5f727ff2be3 100755 (executable)
@@ -1115,7 +1115,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;
 }
 
This page took 0.235105 seconds and 4 git commands to generate.