Skip to content

Commit 2934654

Browse files
Peter Oberparleiteroberpar
authored andcommitted
genhtml: fix handling of user-specified prefixes with trailing /
A trailing / in a user-specified prefix is not correctly recognized. Fix this by removing any number of trailing / in a user-specified prefix. Reported by [email protected].
1 parent 5241e2a commit 2934654

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/genhtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ use Digest::MD5 qw(md5_base64);
7373

7474
# Global constants
7575
our $title = "LCOV - code coverage report";
76-
our $lcov_version = 'LCOV version 1.11 pre (CVS $Revision: 1.74 $)';
76+
our $lcov_version = 'LCOV version 1.11 pre (CVS $Revision: 1.75 $)';
7777
our $lcov_url = "http://ltp.sourceforge.net/coverage/lcov.php";
7878
our $tool_name = basename($0);
7979

@@ -924,6 +924,7 @@ sub gen_html()
924924
{
925925
info("Using user-specified filename prefix \"".
926926
"$dir_prefix\"\n");
927+
$dir_prefix =~ s/\/+$//;
927928
}
928929

929930
# Read in test description file if specified

0 commit comments

Comments
 (0)