From 4ab1577db3bb1358af5fd387a59c541621f5df1e Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 29 May 2002 05:20:39 +0000 Subject: * parse.y: yyparse #defines moved from intern.h * ruby.c (proc_options): access prefixed "ruby_yydebug". * applied modifies to pacify some of gcc -Wall warnings. * parse.y (arg): no more ugly hack for "**", so that "-2**2" to be parsed as "(-2)**2", whereas "- 2**2" or "-(2)**2" to be parsed as "-(2**2)". * parse.y (yylex): '-2' to be literal fixnum. [new] * time.c (time_succ): new method for Range support. * time.c (time_arg): nil test against v[6] (usec). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 8dff71b703..6f14290a05 100644 --- a/io.c +++ b/io.c @@ -2081,7 +2081,7 @@ io_reopen(io, nfile) OpenFile *fptr, *orig; char *mode; int fd; - off_t pos; + off_t pos = 0; nfile = rb_io_get_io(nfile); if (rb_safe_level() >= 4 && (!OBJ_TAINTED(io) || !OBJ_TAINTED(nfile))) { @@ -3508,7 +3508,7 @@ argf_read(argc, argv) VALUE *argv; { VALUE tmp, str; - int len; + int len = 0; if (argc == 1) len = NUM2INT(argv[0]); str = Qnil; -- cgit v1.2.3