hand apply whitespace-mutiliated patch
Joshua Pritikin [Mon, 15 Jun 1998 09:21:36 +0000 (05:21 -0400)]
Message-Id: <H00000e50007289b@MHS>
Subject: [PATCH 5.004_67] SvREADONLY for av_clear

p4raw-id: //depot/perl@1149

av.c

diff --git a/av.c b/av.c
index 02be7cc..85bcf0c 100644 (file)
--- 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);