aboutsummaryrefslogtreecommitdiff
path: root/lang/perl5.16/files/patch-sv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lang/perl5.16/files/patch-sv.c')
-rw-r--r--lang/perl5.16/files/patch-sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/perl5.16/files/patch-sv.c b/lang/perl5.16/files/patch-sv.c
index aeb160db81bd..4a4a6d840d26 100644
--- a/lang/perl5.16/files/patch-sv.c
+++ b/lang/perl5.16/files/patch-sv.c
@@ -6,7 +6,7 @@
case SVt_PVAV:
- if (AvARRAY((AV*)sstr)) {
+ /* avoid cloning an empty array */
-+ if (AvARRAY((AV*)sstr) && AvFILLp((AV*)sstr >= 0) {
++ if (AvARRAY((AV*)sstr) && AvFILLp((AV*)sstr) >= 0) {
SV **dst_ary, **src_ary;
SSize_t items = AvFILLp((AV*)sstr) + 1;