toke.c:S_parse_opt_lexvar: Don’t use null terminator
authorFather Chrysostomos <sprout@cpan.org>
Fri, 10 Oct 2014 03:35:35 +0000 (20:35 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 10 Oct 2014 21:26:45 +0000 (14:26 -0700)
allocmy no longer depends on it.

toke.c

diff --git a/toke.c b/toke.c
index 09ef5b2..44d0fef 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -11401,7 +11401,6 @@ S_parse_opt_lexvar(pTHX)
     PL_bufptr = s;
     if (d == PL_tokenbuf+1)
        return NULL;
-    *d = 0;
     var = newOP(sigil == '$' ? OP_PADSV : sigil == '@' ? OP_PADAV : OP_PADHV,
                OPf_MOD | (OPpLVAL_INTRO<<8));
     var->op_targ = allocmy(PL_tokenbuf, d - PL_tokenbuf, UTF ? SVf_UTF8 : 0);