diff options
author | Ilya Zakharevich <ilya@math.ohio-state.edu> | 1997-02-27 14:24:36 -0500 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-02-25 13:12:02 +1200 |
commit | d368068e81e6a41051cb58eaf3303203a657c852 (patch) | |
tree | a5510fc3851c3d86b83c382f35aa56165fee7bcc /sv.c | |
parent | ab52ffed6cff277a7a3483565cf8fee532ea7789 (diff) | |
download | perl-d368068e81e6a41051cb58eaf3303203a657c852.tar.gz |
Fix SEGV when debugging with foreach() lvalue patch
p5p-msgid: <199702271924.OAA14557@monk.mps.ohio-state.edu>
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2624,6 +2624,9 @@ register SV *sv; sv_upgrade(&ref, SVt_RV); SvRV(&ref) = SvREFCNT_inc(sv); SvROK_on(&ref); + SvREFCNT(&ref) = 1; /* Fake, but otherwise + creating+destructing a ref + leads to disaster. */ EXTEND(SP, 2); PUSHMARK(SP); |