summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@wiw.org>2002-04-08 22:40:16 +0000
committerAbhijit Menon-Sen <ams@wiw.org>2002-04-08 22:40:16 +0000
commit6d5fa195b8ce3a3ff89a34a5129a6703e16de57a (patch)
tree13a68c6bbcf36a2417d673546937717d76711097 /mg.c
parent16710706c1ad5cc8208e5c8797e3809ed3d6f7c7 (diff)
downloadperl-6d5fa195b8ce3a3ff89a34a5129a6703e16de57a.tar.gz
Humbly pay homage to the redundancy gods.
p4raw-id: //depot/perl@15818
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index 9fe33690c1..4da71b1023 100644
--- a/mg.c
+++ b/mg.c
@@ -454,6 +454,7 @@ Perl_magic_len(pTHX_ SV *sv, MAGIC *mg)
char *s = rx->subbeg + s1;
char *send = rx->subbeg + t1;
+ i = t1 - s1;
if (is_utf8_string((U8*)s, i))
i = Perl_utf8_length(aTHX_ (U8*)s, (U8*)send);
}