Permalink
Browse files

* process.c (rb_execarg_fixup): fix envopts condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 759c214 commit fe688f2d302e3e3f70fba4bc93223740d9826e8e @akr akr committed Jun 23, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +1 −1 process.c
View
@@ -1,3 +1,7 @@
+Sat Jun 23 19:01:18 2012 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_execarg_fixup): fix envopts condition.
+
Sat Jun 23 18:44:13 2012 Tanaka Akira <akr@fsij.org>
* process.c (check_exec_redirect1): extracted from
View
@@ -2147,7 +2147,7 @@ rb_execarg_fixup(VALUE execarg_obj)
envtbl = rb_convert_type(envtbl, T_HASH, "Hash", "to_hash");
}
hide_obj(envtbl);
- if (!NIL_P(envopts)) {
+ if (envopts != Qfalse) {
st_table *stenv = RHASH_TBL(envtbl);
long i;
for (i = 0; i < RARRAY_LEN(envopts); i++) {

0 comments on commit fe688f2

Please sign in to comment.