diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-10-23 18:55:29 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-23 18:55:29 -0700 |
commit | 74401f9c0e7d7248493d3f2bb0f4fdb0b20a92aa (patch) | |
tree | 0b79b9a869caf22fcdd4aee223f509f2e54ce68a /hv.c | |
parent | 009b2635b7aa9c5ccb2d91ef5ce0cd7f079301d0 (diff) | |
download | perl-74401f9c0e7d7248493d3f2bb0f4fdb0b20a92aa.tar.gz |
Perl_hv_name_add needs to set xhv_name_count in one other place.
Perl_hv_name_add was not setting the name count when upgrading a HEK*
to an array of HEK*s.
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2084,7 +2084,7 @@ Perl_hv_name_add(pTHX_ HV *hv, const char *name, U32 len) HEK_LEN(existing_name) == (I32)len && memEQ(HEK_KEY(existing_name), name, len) ) return; - Newxc(aux->xhv_name, 2, HEK *, HEK); + Newxc(aux->xhv_name, aux->xhv_name_count = 2, HEK *, HEK); *(HEK **)aux->xhv_name = existing_name; ((HEK **)aux->xhv_name)[1] = share_hek(name, len, hash); } |