From 5956967a99774ffdefe940dd33e963a5931d77c7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 30 Jun 2013 14:16:26 +0000 Subject: [PATCH] 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 --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.c b/process.c index b23699a76e..4e34b3560c 100644 --- a/process.c +++ b/process.c @@ -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' */