summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorJoshua Pritikin <joshua.pritikin@db.com>1998-06-15 05:21:36 -0400
committerGurusamy Sarathy <gsar@cpan.org>1998-06-18 20:41:30 +0000
commit39caa6651d887df19768fb14497fd7d7da61cbd2 (patch)
treead8e034a1444ea71127d14f9b3d647e8f723f1a4 /av.c
parent26893f8d4c7b51d5bfa4e21e347c404f5c2964af (diff)
downloadperl-39caa6651d887df19768fb14497fd7d7da61cbd2.tar.gz
hand apply whitespace-mutiliated patch
Message-Id: <H00000e50007289b@MHS> Subject: [PATCH 5.004_67] SvREADONLY for av_clear p4raw-id: //depot/perl@1149
Diffstat (limited to 'av.c')
-rw-r--r--av.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/av.c b/av.c
index 02be7cc8cc..85bcf0c5e0 100644
--- a/av.c
+++ b/av.c
@@ -327,6 +327,9 @@ av_clear(register AV *av)
return;
/*SUPPRESS 560*/
+ if (SvREADONLY(av))
+ croak(no_modify);
+
/* Give any tie a chance to cleanup first */
if (SvRMAGICAL(av))
mg_clear((SV*)av);