diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-08-16 17:57:27 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-08-16 17:57:27 +0000 |
commit | 724e67cb5119c18364c1131d2478435750263a24 (patch) | |
tree | cb7f93a82285a37ebdcfb0f1bfb84920c4b4f68b /dump.c | |
parent | 3db79780c8c68c9c0d40bc69eacba51360a89b19 (diff) | |
download | perl-724e67cb5119c18364c1131d2478435750263a24.tar.gz |
Fix for [perl #36853] -Dx can crash bleadperl
The PL_op_sequence global hash wasn't initialized
p4raw-id: //depot/perl@25296
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -414,10 +414,8 @@ sequence(pTHX_ register const OP *o) if (!o) return; - op = newSVuv(PTR2UV(o)); - key = SvPV_const(op, len); - if (hv_exists(Sequence, key, len)) - return; + if (!Sequence) + Sequence = newHV(); for (; o; o = o->op_next) { op = newSVuv(PTR2UV(o)); |