gitweb: fix 'Use of uninitialized value' error in href()
authorGiuseppe Bilotta <redacted>
Fri, 31 Jul 2009 06:48:49 +0000 (08:48 +0200)
committerJunio C Hamano <redacted>
Tue, 4 Aug 2009 07:26:03 +0000 (00:26 -0700)
commitb7da721f02638083cc3debfd9ae7221d76a96b26
tree4fceff12b82da8b8ac41cc08ac849244ddd77366
parent6639ffc2e026b34b906854b8c60bd72d4b95e78d
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/gitweb.perl
git clone https://git.99rst.org/PROJECT