mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-03 16:48:45 +00:00
Do not store reference to a temporary
Seems to have worked by accident. I could swear that I had fixed this..
This commit is contained in:
parent
1da09f2c52
commit
c513724d7b
1 changed files with 1 additions and 1 deletions
|
@ -1019,7 +1019,7 @@ eval_result_t parse_execution_context_t::apply_variable_assignments(
|
||||||
const wcstring &source = variable_assignment.get_source(pstree->src);
|
const wcstring &source = variable_assignment.get_source(pstree->src);
|
||||||
auto equals_pos = variable_assignment_equals_pos(source);
|
auto equals_pos = variable_assignment_equals_pos(source);
|
||||||
assert(equals_pos);
|
assert(equals_pos);
|
||||||
const wcstring &variable_name = source.substr(0, *equals_pos);
|
const wcstring variable_name = source.substr(0, *equals_pos);
|
||||||
const wcstring expression = source.substr(*equals_pos + 1);
|
const wcstring expression = source.substr(*equals_pos + 1);
|
||||||
completion_list_t expression_expanded;
|
completion_list_t expression_expanded;
|
||||||
parse_error_list_t errors;
|
parse_error_list_t errors;
|
||||||
|
|
Loading…
Reference in a new issue