This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
POSIX math: NV_NAN can be the right answer for nan().
[perl5.git] / mg.c
diff --git a/mg.c b/mg.c
index e1fc578..9dc0679 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -2237,7 +2237,7 @@ Perl_magic_gettaint(pTHX_ SV *sv, MAGIC *mg)
     PERL_UNUSED_ARG(mg);
 #endif
 
-    TAINT_IF((PL_localizing != 1) && (mg->mg_len & 1));
+    TAINT_IF((PL_localizing != 1) && (mg->mg_len & 1) && IN_PERL_RUNTIME);
     return 0;
 }