Skip to content

Commit e6aeedb

Browse files
committed
genhtml: Fix warning
Fix a warning that occurs e.g. when building the example output: genhtml: WARNING: splice() offset past end of array at ../bin/genhtml line 7465. Signed-off-by: Peter Oberparleiter <[email protected]>
1 parent d25174a commit e6aeedb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/genhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7461,7 +7461,7 @@ sub write_header_line(*@)
74617461
my @labels = qw/width class colspan title/;
74627462
foreach my $entry (@content) {
74637463
my @d = @$entry;
7464-
my $text = splice(@d, 2, 1);
7464+
my $text = splice(@d, 2, 1) if (scalar(@d) > 1);
74657465
# entry may not contain some data - e.g., does not have colspan or title
74667466
die("unexpected entry format") unless scalar(@labels) >= scalar(@d);
74677467
my $str = " <td";

0 commit comments

Comments
 (0)