summaryrefslogtreecommitdiff
path: root/av.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-04-17 13:15:34 +0000
committerNicholas Clark <nick@ccl4.org>2006-04-17 13:15:34 +0000
commit725ac12f95fe41dbf122254e15cf9e957365a925 (patch)
treeb270b9fd8931f301c6502fae467fdb988ad8b4d5 /av.c
parentce3e5c451d1a009a73fa3a69c256b0fd8af3aa33 (diff)
downloadperl-725ac12f95fe41dbf122254e15cf9e957365a925.tar.gz
Note in av_store() that S_regclass relies on being able to pass NULL.
p4raw-id: //depot/perl@27868
Diffstat (limited to 'av.c')
-rw-r--r--av.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/av.c b/av.c
index 423d00632d..5f04d05d64 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;