summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
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;