summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2001-12-19 01:45:23 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-12-19 01:14:04 +0000
commit9e3013b16364a48eba51a8b57383bf45e1c4c0e4 (patch)
tree852c4f29c07859b6360a97bbeac9c10c2fdc157e
parent058eaa425d59becab3e9c03e8b8291dc8707c468 (diff)
downloadperl-9e3013b16364a48eba51a8b57383bf45e1c4c0e4.tar.gz
Re: [ID 20011213.001] Segfault with overload and Test
Message-Id: <200112190145.fBJ1jNt23668@crypt.compulink.co.uk> p4raw-id: //depot/perl@13786
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index ff751cb73e..30ec7e484f 100644
--- a/sv.c
+++ b/sv.c
@@ -3235,7 +3235,7 @@ Perl_sv_2bool(pTHX_ register SV *sv)
if (SvROK(sv)) {
SV* tmpsv;
if (SvAMAGIC(sv) && (tmpsv=AMG_CALLun(sv,bool_)) &&
- (SvTYPE(tmpsv) != SVt_RV || (SvRV(tmpsv) != SvRV(sv))))
+ (!SvROK(tmpsv) || (SvRV(tmpsv) != SvRV(sv))))
return SvTRUE(tmpsv);
return SvRV(sv) != 0;
}