summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2012-01-30 16:30:24 -0300
committerKarl Williamson <public@khwilliamson.com>2012-01-30 19:28:10 -0700
commit0902dd32d1902bb68b2d5a78de217dea434431ee (patch)
treee1de3a671cfeba4c839cd8a94d317b92783d9389 /pp.c
parentffa23acf6bf9670bd1d5fdc9a958c918b6cf3d06 (diff)
downloadperl-0902dd32d1902bb68b2d5a78de217dea434431ee.tar.gz
use locale; fc(""); shouldn't taint.
fc() brought to life its own version of #39028. fc(""), like lc("") and friends, shouldn't taint the result.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 29ed4c672e..f6ad80fca8 100644
--- a/pp.c
+++ b/pp.c
@@ -4184,7 +4184,7 @@ PP(pp_fc)
SvTAINTED_on(dest);
}
} /* Unflagged string */
- else {
+ else if (len) {
/* For locale, bytes, and nothing, the behavior is supposed to be the
* same as lc().
*/