aboutsummaryrefslogtreecommitdiffhomepage
path: root/env.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-25 23:31:03 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-25 23:31:03 -0700
commit31b7d076b7bff8d7bb81e6a1fff58755b7baa10b (patch)
tree98744caa4771d845dccf0ae547aeafd4a01190b8 /env.cpp
parenta11687fc5c984a18d1d2071c1f88d0a12c5b2f5d (diff)
Remove some dead variables.
Fix screwy output for invalid tilde expansion in expand.cpp Some cleanup per clang static analyzer
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/env.cpp b/env.cpp
index 645dca02..1450b68d 100644
--- a/env.cpp
+++ b/env.cpp
@@ -714,11 +714,8 @@ static env_node_t *env_get_node( const wcstring &key )
while( env != 0 )
{
- var_table_t::const_iterator result = env->env.find( key );
-
- if ( result != env->env.end() )
+ if ( env->env.find( key ) != env->env.end() )
{
- res = result->second;
return env;
}