]> Lady’s Gitweb - Gitweb/commit
gitweb: fix 'Use of uninitialized value' error in href()
authorGiuseppe Bilotta <redacted>
Fri, 31 Jul 2009 06:48:49 +0000 (08:48 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:39 +0000 (00:50 -0400)
commitf17476ae4721369c6798eb7b55356bbaf15261659e681c4b14b0bd3c39ebe025
tree2dbd62218ab4487ca8c9fdb0ec6ec80a0c0bbd6e8a5e9fe773e224022580ddce
parent347f4eb605fd50e3f5af322daf43fafea5bccf74356dc5077ea580e5a35ae59a
gitweb: fix 'Use of uninitialized value' error in href()

Equality between file_parent and file_name was being checked without a
preliminary check for existence of the parameters.

Fix by wrapping the equality check in appropriate if (defined ...),
rearranging the lines to prevent excessive length.

Signed-off-by: Giuseppe Bilotta <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.12573 seconds and 4 git commands to generate.