io.c (rb_file_open_internal): initialize all the fields
Just for case. This will suppress the warning of Coverity Scan.
This commit is contained in:
parent
2618db3011
commit
95de69df99
2
io.c
2
io.c
@ -6228,6 +6228,8 @@ rb_file_open_internal(VALUE io, VALUE filename, const char *modestr)
|
|||||||
if (p) {
|
if (p) {
|
||||||
parse_mode_enc(p+1, rb_usascii_encoding(),
|
parse_mode_enc(p+1, rb_usascii_encoding(),
|
||||||
&convconfig.enc, &convconfig.enc2, &fmode);
|
&convconfig.enc, &convconfig.enc2, &fmode);
|
||||||
|
convconfig.ecflags = 0;
|
||||||
|
convconfig.ecopts = Qnil;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rb_encoding *e;
|
rb_encoding *e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user