diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-17 13:15:34 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-17 13:15:34 +0000 |
commit | 725ac12f95fe41dbf122254e15cf9e957365a925 (patch) | |
tree | b270b9fd8931f301c6502fae467fdb988ad8b4d5 /av.c | |
parent | ce3e5c451d1a009a73fa3a69c256b0fd8af3aa33 (diff) | |
download | perl-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |