summaryrefslogtreecommitdiff
path: root/taint.c
diff options
context:
space:
mode:
Diffstat (limited to 'taint.c')
-rw-r--r--taint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/taint.c b/taint.c
index 4c031de517..05a1a44d04 100644
--- a/taint.c
+++ b/taint.c
@@ -25,8 +25,8 @@ taint_proper(const char *f, char *s)
ug = " while running with -T switch";
if (!PL_unsafe)
croak(f, s, ug);
- else if (PL_dowarn)
- warn(f, s, ug);
+ else if (ckWARN(WARN_TAINT))
+ warner(WARN_TAINT, f, s, ug);
}
}