mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
io.c: fix uninitialized variable
* io.c (argf_next_argv): fix uninitialized variable in skipping message when inplace edit without backup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8e99842d03
commit
dacc19e409
1 changed files with 2 additions and 1 deletions
3
io.c
3
io.c
|
@ -7903,8 +7903,9 @@ argf_next_argv(VALUE argf)
|
||||||
rb_io_close(rb_stdout);
|
rb_io_close(rb_stdout);
|
||||||
}
|
}
|
||||||
fstat(fr, &st);
|
fstat(fr, &st);
|
||||||
|
str = ARGF.filename;
|
||||||
if (*ARGF.inplace) {
|
if (*ARGF.inplace) {
|
||||||
str = rb_str_dup(ARGF.filename);
|
str = rb_str_dup(str);
|
||||||
rb_str_cat2(str, ARGF.inplace);
|
rb_str_cat2(str, ARGF.inplace);
|
||||||
/* TODO: encoding of ARGF.inplace */
|
/* TODO: encoding of ARGF.inplace */
|
||||||
#ifdef NO_SAFE_RENAME
|
#ifdef NO_SAFE_RENAME
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue