diff options
author | Junio C Hamano <junkio@cox.net> | 2007-05-16 21:04:16 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-05-16 21:04:16 -0700 |
commit | 2eb54efc6c12cb20403db9a4739bd736c3bfaad1 (patch) | |
tree | 77097ae369f0b5c2dc7ef8a09b543814c50da986 /gitweb | |
parent | d26c4264e584a1a8cbadbc161fa52cf947f5230a (diff) | |
download | git-2eb54efc6c12cb20403db9a4739bd736c3bfaad1.tar.gz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 8c688be66d..6f5df9174e 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; } |