mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
3145683203
commit
170344b20e
4 changed files with 206 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue