Don't use std::map::insert when we need to overwrite values
This commit is contained in:
ridiculousfish
2012-06-16 13:05:58 -07:00
parent 1d54bff385
commit afd8d2f9ba
2 changed files with 7 additions and 8 deletions

View File

@@ -555,7 +555,7 @@ void env_universal_common_set( const wchar_t *key, const wchar_t *val, int expor
entry->val = val;
env_universal_common_remove( key );
env_universal_var.insert( std::pair<wcstring, var_uni_entry_t*>(key, entry));
env_universal_var[key] = entry;
if( callback )
{
callback( exportv?SET_EXPORT:SET, key, val );