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

Commit ace2447

Browse files
committed
Init empty arrays using INITAv
This is an issue where the EXPORT_FAIL arrays are not initialized properly. Refs: CPANEL-42007
1 parent bbab437 commit ace2447

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
@@ -194,7 +194,7 @@ sub do_save {
194194
}
195195
else {
196196
my $max = $av->MAX;
197-
init()->sadd( "av_extend(%s, %d);", $sym, $max ) if $max > -1;
197+
$av->add_to_init( $sym, '', $fill, $fullname ) if $max > -1;
198198
}
199199

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

0 commit comments

Comments
 (0)