summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-06-13 22:41:33 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-06-13 22:41:33 +0000
commitf24aceb1b6884bbb6aae2a756c35663bc6fac2c3 (patch)
treeabba105d3e4a92199793f2650f487837fafd2404 /sv.c
parentd0bc9cc8514a55284231a7487bc6aa00d14c5531 (diff)
downloadperl-f24aceb1b6884bbb6aae2a756c35663bc6fac2c3.tar.gz
change #31134 broke DEBUG_LEAKING_SCALARS builds
p4raw-link: @31134 on //depot/perl: 53a7735b62aee14640bc8ca619b4267f07d686b9 p4raw-id: //depot/perl@31376
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 16e5e72829..4be849f601 100644
--- a/sv.c
+++ b/sv.c
@@ -246,8 +246,13 @@ S_new_SV(pTHX)
SvREFCNT(sv) = 1;
SvFLAGS(sv) = 0;
sv->sv_debug_optype = PL_op ? PL_op->op_type : 0;
- sv->sv_debug_line = (U16) ((PL_parser && PL_parser->copline == NOLINE) ?
- (PL_curcop ? CopLINE(PL_curcop) : 0) : PL_parser->copline);
+ sv->sv_debug_line = (U16) (PL_parser
+ ? PL_parser->copline == NOLINE
+ ? PL_curcop
+ ? CopLINE(PL_curcop)
+ : 0
+ : PL_parser->copline
+ : 0);
sv->sv_debug_inpad = 0;
sv->sv_debug_cloned = 0;
sv->sv_debug_file = PL_curcop ? savepv(CopFILE(PL_curcop)): NULL;