diff options
author | Andy Lester <andy@petdance.com> | 2017-02-17 19:46:15 -0600 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-02-18 12:19:54 +0000 |
commit | 19742f39bfbfba7529a49232271b390bc4e811cb (patch) | |
tree | 7c4bc6dcc2549314279de41e4b84ca22d3af270e /taint.c | |
parent | d8f2fe0966b076afb4b85eb04d1524b6af37e344 (diff) | |
download | perl-19742f39bfbfba7529a49232271b390bc4e811cb.tar.gz |
Moving variables to their innermost scope.
Some vars have been tagged as const because they do not change in their
new scopes. In pp_reverse in pp.c, I32 tmp is only used to hold a char,
so is changed to char.
Diffstat (limited to 'taint.c')
-rw-r--r-- | taint.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -78,7 +78,6 @@ void Perl_taint_env(pTHX) { SV** svp; - MAGIC* mg; const char* const *e; static const char* const misc_env[] = { "IFS", /* most shells' inter-field separators */ @@ -121,6 +120,7 @@ Perl_taint_env(pTHX) STRLEN len = 8; /* strlen(name) */ while (1) { + MAGIC* mg; if (i) len = my_sprintf(name,"DCL$PATH;%d", i); svp = hv_fetch(GvHVn(PL_envgv), name, len, FALSE); @@ -141,6 +141,7 @@ Perl_taint_env(pTHX) svp = hv_fetchs(GvHVn(PL_envgv),"PATH",FALSE); if (svp && *svp) { + MAGIC* mg; if (SvTAINTED(*svp)) { TAINT; taint_proper("Insecure %s%s", "$ENV{PATH}"); |