summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-08-16 17:57:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-08-16 17:57:27 +0000
commit724e67cb5119c18364c1131d2478435750263a24 (patch)
treecb7f93a82285a37ebdcfb0f1bfb84920c4b4f68b /dump.c
parent3db79780c8c68c9c0d40bc69eacba51360a89b19 (diff)
downloadperl-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dump.c b/dump.c
index 82051320f1..9dc7db8a67 100644
--- a/dump.c
+++ b/dump.c
@@ -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));