summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index 69b567db7..7047fdf88 100644
--- a/src/io.c
+++ b/src/io.c
@@ -506,7 +506,7 @@ mrb_io_pid(mrb_state *mrb, mrb_value io)
static struct timeval
time2timeval(mrb_state *mrb, mrb_value time)
{
- struct timeval t;
+ struct timeval t = { 0, 0 };
switch (mrb_type(time)) {
case MRB_TT_FIXNUM: