Remove some dead variables.

Fix screwy output for invalid tilde expansion in expand.cpp
Some cleanup per clang static analyzer
This commit is contained in:
ridiculousfish
2012-03-25 23:31:03 -07:00
parent a11687fc5c
commit 31b7d076b7
6 changed files with 17 additions and 19 deletions

View File

@@ -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;
}