summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sv.c b/sv.c
index f60e8206ca..6e137a3a10 100644
--- a/sv.c
+++ b/sv.c
@@ -3708,10 +3708,7 @@ newRV_noinc(SV *tmpRef)
SV *
newRV(SV *tmpRef)
{
- register SV *sv;
- sv = newRV_noinc(tmpRef);
- SvREFCNT_inc(tmpRef);
- return sv;
+ return newRV_noinc(SvREFCNT_inc(tmpRef));
}
/* make an exact duplicate of old */