summaryrefslogtreecommitdiff
path: root/vsnprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-19 07:25:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-19 07:25:09 +0000
commit170344b20ec9e3340d9bb41e9f7434ccd2ae6365 (patch)
tree38d111015f600d013efb72d035108ebe33e8c518 /vsnprintf.c
parent3145683203c5673da67676fecb4b7efdfec72653 (diff)
vsnprintf.c: initialize cp
* vsnprintf.c (BSD_vfprintf): initialize cp so that size is 0 in the commented case. fix an accidental bug at r16716. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index 9778f039c5..8958aaa41f 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -1060,6 +1060,7 @@ number: if ((dprec = prec) >= 0)
* explicit precision of zero is no characters.''
* -- ANSI X3J11
*/
+ cp = ebuf;
#ifdef _HAVE_SANE_QUAD_
if (flags & QUADINT) {
if (uqval != 0 || prec != 0)