From 95de69df9906cde96d30aa2fbc6f5ed4891fdb9f Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 14 Jul 2019 15:23:15 +0900 Subject: [PATCH] io.c (rb_file_open_internal): initialize all the fields Just for case. This will suppress the warning of Coverity Scan. --- io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/io.c b/io.c index 154b45e950..f78c09ba40 100644 --- a/io.c +++ b/io.c @@ -6228,6 +6228,8 @@ rb_file_open_internal(VALUE io, VALUE filename, const char *modestr) if (p) { parse_mode_enc(p+1, rb_usascii_encoding(), &convconfig.enc, &convconfig.enc2, &fmode); + convconfig.ecflags = 0; + convconfig.ecopts = Qnil; } else { rb_encoding *e;