From: Joshua Pritikin Date: Mon, 15 Jun 1998 09:21:36 +0000 (-0400) Subject: hand apply whitespace-mutiliated patch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=39caa6651d887df19768fb14497fd7d7da61cbd2;p=p5sagit%2Fp5-mst-13.2.git hand apply whitespace-mutiliated patch Message-Id: Subject: [PATCH 5.004_67] SvREADONLY for av_clear p4raw-id: //depot/perl@1149 --- diff --git a/av.c b/av.c index 02be7cc..85bcf0c 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);