зеркало из https://github.com/github/ruby.git
rational.c: initialize n
* rational.c (read_num): `n` was used uninitialized when the string started with a period. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
a2ac0982cd
Коммит
f8d01bcb57
|
@ -2280,7 +2280,7 @@ islettere(int c)
|
||||||
static int
|
static int
|
||||||
read_num(const char **s, const char *const end, VALUE *num, VALUE *div)
|
read_num(const char **s, const char *const end, VALUE *num, VALUE *div)
|
||||||
{
|
{
|
||||||
VALUE fp = ONE, exp, fn = ZERO, n;
|
VALUE fp = ONE, exp, fn = ZERO, n = ZERO;
|
||||||
int expsign = 0, ok = 0;
|
int expsign = 0, ok = 0;
|
||||||
char *e;
|
char *e;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче