From: Nicholas Clark Date: Mon, 17 Apr 2006 13:15:34 +0000 (+0000) Subject: Note in av_store() that S_regclass relies on being able to pass NULL. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=725ac12f95fe41dbf122254e15cf9e957365a925;p=p5sagit%2Fp5-mst-13.2.git Note in av_store() that S_regclass relies on being able to pass NULL. p4raw-id: //depot/perl@27868 --- diff --git a/av.c b/av.c index 423d006..5f04d05 100644 --- a/av.c +++ b/av.c @@ -284,6 +284,10 @@ Perl_av_store(pTHX_ register AV *av, I32 key, SV *val) assert(av); + /* S_regclass relies on being able to pass in a NULL sv + (unicode_alternate may be NULL). + */ + if (!val) val = &PL_sv_undef;