summaryrefslogtreecommitdiff
path: root/mro.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-12 15:21:14 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-12 15:21:14 +0000
commitcfff97972660a620adf7d1f4616e4a60f0c7dd32 (patch)
tree3fe8e4290e9432fd0df35d507647ebb25de2a825 /mro.c
parent144c260c66e91246a2209df42a430484ee2d6ad4 (diff)
downloadperl-cfff97972660a620adf7d1f4616e4a60f0c7dd32.tar.gz
Remove some strlen()s and replace one strlcpy() with memcpy() because
we already know the string length. p4raw-id: //depot/perl@32105
Diffstat (limited to 'mro.c')
-rw-r--r--mro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mro.c b/mro.c
index 37a0e96f33..87c102e34d 100644
--- a/mro.c
+++ b/mro.c
@@ -840,8 +840,7 @@ XS(XS_mro_is_universal)
classname = ST(0);
- classname_pv = SvPV_nolen(classname);
- classname_len = strlen(classname_pv);
+ classname_pv = SvPV(classname,classname_len);
he = hv_fetch_ent(PL_isarev, classname, 0, 0);
isarev = he ? (HV*)HeVAL(he) : NULL;