Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit 257c1a9

Browse files
committed
Init empty arrays using INITAv
This is an issue where the EXPORT_FAIL arrays are not initialized properly. Refs: CPANEL-42007 (cherry picked from commit ace2447) Signed-off-by: Nicolas Rochelemagne <[email protected]>
1 parent 2139c40 commit 257c1a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/B/C/OverLoad/B/AV.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ sub do_save ( $av, $fullname = undef, $cv = undef, $is_backref = 0 ) {
191191
}
192192
else {
193193
my $max = $av->MAX;
194-
init()->sadd( "av_extend(%s, %d);", $sym, $max ) if $max > -1;
194+
$av->add_to_init( $sym, '', $fill, $fullname ) if $max > -1;
195195
}
196196

197197
$av->update_sv( $ix, $fullname, { fill => $fill } ); # could be using PADLIST, PADNAMELIST, or AV method for this.

0 commit comments

Comments
 (0)