diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-25 23:31:03 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-25 23:31:03 -0700 |
commit | 31b7d076b7bff8d7bb81e6a1fff58755b7baa10b (patch) | |
tree | 98744caa4771d845dccf0ae547aeafd4a01190b8 /env.cpp | |
parent | a11687fc5c984a18d1d2071c1f88d0a12c5b2f5d (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.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; } |