summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-06-08 00:23:02 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-06-08 00:23:02 -0700
commite39b51c67c54580003211fdb07a0c0f50113c6d1 (patch)
tree1a50cbef13323637ee363424fcdcf735367c029f /sv.c
parent434f489be7a3ec92b6d20b3474a9eee71a87e2a1 (diff)
downloadperl-e39b51c67c54580003211fdb07a0c0f50113c6d1.tar.gz
[perl #117941] reset crashes when current stash is freed
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index bcc9a228aa..c45d4b1a0f 100644
--- a/sv.c
+++ b/sv.c
@@ -8982,7 +8982,7 @@ Perl_sv_resetpvn(pTHX_ const char *s, STRLEN len, HV * const stash)
char todo[PERL_UCHAR_MAX+1];
const char *send;
- if (!stash)
+ if (!stash || SvTYPE(stash) != SVt_PVHV)
return;
if (!s) { /* reset ?? searches */