1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/stringio/stringio.c (strio_getline): local variable to be

initialized.  [ruby-dev:31077]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-06-28 06:00:09 +00:00
parent 14010ce4a3
commit a0aa5f977e
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Thu Jun 28 15:00:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (strio_getline): local variable to be
initialized. [ruby-dev:31077]
Thu Jun 28 11:30:39 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* gc.c (rb_obj_id): use SIGNED_VALUE instead of long.

View file

@ -769,12 +769,11 @@ static VALUE
strio_getline(int argc, VALUE *argv, struct StringIO *ptr)
{
const char *s, *e, *p;
long n, limit;
long n, limit = 0;
VALUE str;
if (argc == 0) {
str = rb_rs;
limit = 0;
}
else {
VALUE lim, tmp;
@ -790,7 +789,6 @@ strio_getline(int argc, VALUE *argv, struct StringIO *ptr)
}
else {
str = tmp;
limit = 0;
}
}
else {