diff options
author | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 02:42:17 -0800 |
---|---|---|
committer | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 02:42:17 -0800 |
commit | a359f45df219e6a3845870ca69b4116083d787f7 (patch) | |
tree | 08454add430170b4113659caf084f9a8801f77c3 /parse_util.cpp | |
parent | e8b6d48ad038089e37730990212676e50a8d2352 (diff) |
Redesign new environment variables to use env_var_t instead of wcstring
Migrate uses of empty() to missing() to distinguish between empty variable and unset variable
Diffstat (limited to 'parse_util.cpp')
-rw-r--r-- | parse_util.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/parse_util.cpp b/parse_util.cpp index c2b79bf5..00dd75d6 100644 --- a/parse_util.cpp +++ b/parse_util.cpp @@ -801,8 +801,6 @@ int parse_util_load( const wcstring &cmd, void (*on_load)(const wchar_t *cmd), int reload ) { - wcstring path_var; - int res; int c, c2; autoload_t *loaded; @@ -812,7 +810,7 @@ int parse_util_load( const wcstring &cmd, // debug( 0, L"Autoload %ls in %ls", cmd, path_var_name ); parse_util_autounload( path_var_name.c_str(), cmd.c_str(), on_load ); - path_var = env_get_string( path_var_name.c_str() ); + const env_var_t path_var = env_get_string( path_var_name.c_str() ); /* Do we know where to look? |