mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:16:10 +08:00
Remove spurious initialization in profiling_cmd_name_for_redirectable_block
This commit is contained in:
parent
20cdcfadac
commit
dd31933c09
@ -68,11 +68,10 @@ static wcstring profiling_cmd_name_for_redirectable_block(const parse_node_t &no
|
||||
|
||||
// Get the source for the block, and cut it at the next statement terminator.
|
||||
const size_t src_start = node.source_start;
|
||||
size_t src_len = node.source_length;
|
||||
|
||||
auto term = tree.find_child<g::end_command>(node);
|
||||
assert(term.has_source() && term.source_range()->start >= src_start);
|
||||
src_len = term.source_range()->start - src_start;
|
||||
size_t src_len = term.source_range()->start - src_start;
|
||||
|
||||
wcstring result = wcstring(src, src_start, src_len);
|
||||
result.append(L"...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user