mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
process.c: remove ineffective assignment
* process.c (rb_exec_fillarg): remove ineffective assignment unless default process encoding is set. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3628ab8092
commit
5956967a99
1 changed files with 1 additions and 1 deletions
|
@ -2179,8 +2179,8 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, VAL
|
|||
for (i = 0; i < argc; i++) {
|
||||
VALUE arg = argv[i];
|
||||
const char *s = StringValueCStr(arg);
|
||||
arg = EXPORT_STR(arg);
|
||||
#ifdef DEFAULT_PROCESS_ENCODING
|
||||
arg = EXPORT_STR(arg);
|
||||
s = RSTRING_PTR(arg);
|
||||
#endif
|
||||
rb_str_buf_cat(argv_buf, s, RSTRING_LEN(arg) + 1); /* include '\0' */
|
||||
|
|
Loading…
Add table
Reference in a new issue