* src/variable.c (do_variable_definition) [W32]: Fix bad variable.

This commit is contained in:
Paul Smith 2024-03-24 16:47:19 -04:00
parent 0b91f42f58
commit d791fb4139

View File

@ -1638,9 +1638,8 @@ do_variable_definition (const floc *flocp, const char *varname, const char *valu
{ {
v = define_variable_in_set (varname, strlen (varname), default_shell, v = define_variable_in_set (varname, strlen (varname), default_shell,
origin, flavor == f_recursive, origin, flavor == f_recursive,
(specificity (scope == s_global ? NULL
? current_variable_set_list->set : current_variable_set_list->set),
: NULL),
flocp); flocp);
no_default_sh_exe = 0; no_default_sh_exe = 0;
} }
@ -1654,9 +1653,8 @@ do_variable_definition (const floc *flocp, const char *varname, const char *valu
{ {
v = define_variable_in_set (varname, strlen (varname), newval, v = define_variable_in_set (varname, strlen (varname), newval,
origin, flavor == f_recursive, origin, flavor == f_recursive,
(specificity (scope == s_global ? NULL
? current_variable_set_list->set : current_variable_set_list->set),
: NULL),
flocp); flocp);
no_default_sh_exe = 0; no_default_sh_exe = 0;
} }