summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-11-12 08:45:40 -0700
committerKarl Williamson <public@khwilliamson.com>2011-11-12 09:17:10 -0700
commitb7576bcb309ba314f0b2e2ff3a1fc7243ef6abac (patch)
tree91640f0de593a991a7d040b405218995fd2a1ad7 /pp.c
parent1a234f2b79fabe425b0df2ff182071f89486689a (diff)
downloadperl-b7576bcb309ba314f0b2e2ff3a1fc7243ef6abac.tar.gz
pp.c: Make sure variable is initialized
A compiler generated a warning about this. It is the degenerate case with an empty input, so isn't really a problem, but silence the warning
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 14b6c0a223..e283536dc7 100644
--- a/pp.c
+++ b/pp.c
@@ -3486,6 +3486,7 @@ PP(pp_ucfirst)
if (! slen) { /* If empty */
need = 1; /* still need a trailing NUL */
+ ulen = 0;
}
else if (DO_UTF8(source)) { /* Is the source utf8? */
doing_utf8 = TRUE;