replace var_entry_t with env_var_t

This is a step to storing fish vars as actual vectors rather than flat
strings.
This commit is contained in:
Kurtis Rader
2017-08-09 11:11:58 -07:00
parent 745a88f2f6
commit 728a4634a1
11 changed files with 120 additions and 126 deletions

View File

@@ -296,7 +296,7 @@ static int my_env_set(const wchar_t *cmd, const wchar_t *key, const wcstring_lis
// We don't check `val->empty()` because an array var with a single empty string will be
// "empty". A truly empty array var is set to the special value `ENV_NULL`.
auto val = list_to_array_val(list);
retval = env_set(key, *val == ENV_NULL ? NULL : val->c_str(), scope | ENV_USER);
retval = env_set(key, val->c_str(), scope | ENV_USER);
switch (retval) {
case ENV_OK: {
retval = STATUS_CMD_OK;