summaryrefslogtreecommitdiffstats
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
commit9c0de839ebc5514b6e81179147dea913a0457fa0 (patch)
tree025e847bb7784184440f69fe59848895454af094 /hash.c
parente6087d037fcd509bbf9f00af6b2f385fd2e041f1 (diff)
downloadruby-9c0de839ebc5514b6e81179147dea913a0457fa0.tar.gz
ruby-9c0de839ebc5514b6e81179147dea913a0457fa0.tar.xz
ruby-9c0de839ebc5514b6e81179147dea913a0457fa0.zip
* hash.c (env_each_value): Do not call env_values() twice.
git-svn-id: http://svn.ruby-lang.org/repos/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 2ba8033b7..a71645357 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);