This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Note in av_store() that S_regclass relies on being able to pass NULL.
authorNicholas Clark <nick@ccl4.org>
Mon, 17 Apr 2006 13:15:34 +0000 (13:15 +0000)
committerNicholas Clark <nick@ccl4.org>
Mon, 17 Apr 2006 13:15:34 +0000 (13:15 +0000)
p4raw-id: //depot/perl@27868

av.c

diff --git a/av.c b/av.c
index 423d006..5f04d05 100644 (file)
--- 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;