Skip to content

Commit aec0d0c

Browse files
committed
Update Changes and tweak code for sprintf warning RT#97062
1 parent d3d19e4 commit aec0d0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Changes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ DBI::Changes - List of significant changes to the DBI
1212
drivers are expected to set it true as needed.
1313
Fixed DBI::DBD::SqlEngine to complain loudly when prerequite
1414
driver_prefix is not fulfilled (RT#93204) [Jens Rehsack]
15+
Fixed redundant sprintf argument warning RT#97062 [Reini Urban]
1516

1617
=head2 Changes in DBI 1.631 - 20th Jan 2014
1718

lib/DBI/Profile.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,11 +831,11 @@ sub as_text {
831831
for (@path) {
832832
s/[\r\n]+/ /g;
833833
s/$separator_re/ /g;
834+
++$idx;
834835
if ($format_path_element eq "%s") {
835836
$_ = sprintf $format_path_element, $_;
836-
++$idx;
837837
} else {
838-
$_ = sprintf $format_path_element, $_, ++$idx;
838+
$_ = sprintf $format_path_element, $_, $idx;
839839
}
840840
}
841841
push @text, sprintf $format,

0 commit comments

Comments
 (0)