summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-11-04 21:52:55 -0800
committerFather Chrysostomos <sprout@cpan.org>2013-11-05 06:15:15 -0800
commit5882ddb381a033c6699801b9b1046860bf7bfa9c (patch)
tree660c95e1c4362fef4d348f2e5ee26df83973593e /toke.c
parent952ad5fef90a698364a2c483108893d79afc5645 (diff)
downloadperl-5882ddb381a033c6699801b9b1046860bf7bfa9c.tar.gz
toke.c: Remove unnecessary SvRV null check
If SvROK is true, then SvRV will never be null. (If it is, then serious problems will occur elsewhere, as other code assumes this.)
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index bd65fd3f3d..08421ff838 100644
--- a/toke.c
+++ b/toke.c
@@ -2866,8 +2866,8 @@ S_get_and_check_backslash_N_name(pTHX_ const char* s, const char* const e)
* validation. */
table = GvHV(PL_hintgv); /* ^H */
cvp = hv_fetchs(table, "charnames", FALSE);
- if (cvp && (cv = *cvp) && SvROK(cv) && ((rv = SvRV(cv)) != NULL)
- && SvTYPE(rv) == SVt_PVCV && ((stash = CvSTASH(rv)) != NULL))
+ if (cvp && (cv = *cvp) && SvROK(cv) && (rv = SvRV(cv),
+ SvTYPE(rv) == SVt_PVCV) && ((stash = CvSTASH(rv)) != NULL))
{
const char * const name = HvNAME(stash);
if strEQ(name, "_charnames") {