summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorMarc-Philip <marc-philip.werner@sap.com>2018-04-08 12:15:29 -0600
committerKarl Williamson <khw@cpan.org>2018-04-08 12:25:09 -0600
commit62e6b70574842d7f2c547d33c85c50228522f685 (patch)
tree6b7bd22ba67aae4e050daf78b5cb3eb55dfab88f /pp.c
parent72fb1fd2404085fdd14cea298599a15c6f9412d4 (diff)
downloadperl-62e6b70574842d7f2c547d33c85c50228522f685.tar.gz
PATCH: [perl #133074] 5.26.1: some coverity fixes
we have some coverity code scans here. They have found this uninilialized variable in pp.c and the integer overrun in toke.c. Though it might be possible that these are false positives (no reasonable control path gets there), it's good to mute the scan here to see the real problems easier.
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 5524131658..d777ae4309 100644
--- a/pp.c
+++ b/pp.c
@@ -3727,6 +3727,7 @@ PP(pp_ucfirst)
if (! slen) { /* If empty */
need = 1; /* still need a trailing NUL */
ulen = 0;
+ *tmpbuf = '\0';
}
else if (DO_UTF8(source)) { /* Is the source utf8? */
doing_utf8 = TRUE;