diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2009-04-28 21:27:54 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2009-04-28 21:27:54 +0000 |
commit | b6bb8c3d3a17625aa826094130b3d84530b6dae4 (patch) | |
tree | f2de4a4d4b2f5c3fcbd1ee2ea6cce6d571bfb5f7 /lang/perl5.12/files/patch-sv.c | |
parent | - Fix PLIST (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_7_2_0'.release/7.2.0
Diffstat (limited to 'lang/perl5.12/files/patch-sv.c')
-rw-r--r-- | lang/perl5.12/files/patch-sv.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lang/perl5.12/files/patch-sv.c b/lang/perl5.12/files/patch-sv.c deleted file mode 100644 index 5ee260a4b4bd..000000000000 --- a/lang/perl5.12/files/patch-sv.c +++ /dev/null @@ -1,21 +0,0 @@ ---- sv.c -+++ sv.c -@@ -10421,7 +10421,8 @@ Perl_sv_dup(pTHX_ const SV *sstr, CLONE_PARAMS* param) - IoBOTTOM_NAME(dstr) = SAVEPV(IoBOTTOM_NAME(dstr)); - break; - case SVt_PVAV: -- if (AvARRAY((AV*)sstr)) { -+ /* avoid cloning an empty array */ -+ if (AvARRAY((AV *)sstr) && AvFILLp((AV *)sstr) >= 0) { - SV **dst_ary, **src_ary; - SSize_t items = AvFILLp((AV*)sstr) + 1; - -@@ -10446,6 +10447,8 @@ Perl_sv_dup(pTHX_ const SV *sstr, CLONE_PARAMS* param) - else { - AvARRAY((AV*)dstr) = NULL; - AvALLOC((AV*)dstr) = (SV**)NULL; -+ AvMAX( (AV *)dstr) = -1; -+ AvFILLp((AV *)dstr) = -1; - } - break; - case SVt_PVHV: |