This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove the VMS-specific private len in S_mayberelocate.
authorCraig A. Berry <craigberry@mac.com>
Sat, 3 Dec 2011 21:55:26 +0000 (15:55 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sat, 3 Dec 2011 21:55:26 +0000 (15:55 -0600)
commit9dfa9235a81f85efedff9a00ba71734ec14a5e4d
treebf3373a7d8eb9068244d8a8b13c8964d644b988c
parent42932e1a33ce479972ea1398a41965265d8fb06b
Remove the VMS-specific private len in S_mayberelocate.

This particular C<STRLEN len;> came along almost 15 years ago, way
back in aa6893958c2b.  Back then it was a plain and simple block
scope variable.  But now this code lives in a function that takes
as an argument a variable of the same name and having the same
meaning (i.e., the length of the directory name to be added to
@INC).  Someone looking only at the argument list might reasonably
expect to be able to use len (though luckily there are no subsequent
uses of it currently).  So we really ought to update that len rather
than create our own when we hijack the directory name to make our
unixified version of it.
perl.c