summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-25 15:42:14 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-25 15:42:14 +0000
commit49cd41757853adc85715c4eea1fa3f0aa513bcda (patch)
tree025e847bb7784184440f69fe59848895454af094 /hash.c
parenta93136879e5bdfa4ac59669f9e25a0b9cf6c44f5 (diff)
* hash.c (env_each_value): Do not call env_values() twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash.c b/hash.c
index 2ba8033b77..a71645357d 100644
--- a/hash.c
+++ b/hash.c
@@ -2117,7 +2117,7 @@ env_values(void)
static VALUE
env_each_value(VALUE ehash)
{
- VALUE values = env_values();
+ VALUE values;
long i;
RETURN_ENUMERATOR(ehash, 0, 0);