This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: Move some bug fixes to proper section
[perl5.git] / taint.c
diff --git a/taint.c b/taint.c
index 60a9a54..1b78928 100644 (file)
--- a/taint.c
+++ b/taint.c
@@ -35,11 +35,11 @@ Perl_taint_proper(pTHX_ const char *f, const char *const s)
 
 #if Uid_t_sign == 1 /* uid_t is unsigned. */
        DEBUG_u(PerlIO_printf(Perl_debug_log,
-                              "%s %d %"UVuf" %"UVuf"\n",
+                              "%s %d %" UVuf " %" UVuf "\n",
                               s, TAINT_get, (UV)uid, (UV)euid));
 #else /* uid_t is signed (Uid_t_sign == -1), or don't know. */
        DEBUG_u(PerlIO_printf(Perl_debug_log,
-                              "%s %d %"IVdf" %"IVdf"\n",
+                              "%s %d %" IVdf " %" IVdf "\n",
                               s, TAINT_get, (IV)uid, (IV)euid));
 #endif
     }
@@ -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}");
@@ -185,11 +186,5 @@ Perl_taint_env(pTHX)
 }
 
 /*
- * Local variables:
- * c-indentation-style: bsd
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * End:
- *
  * ex: set ts=8 sts=4 sw=4 et:
  */