From dd31933c09ffecfba86cad0834fd8ee6602e0397 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 16 Jan 2019 15:48:25 -0600 Subject: [PATCH] Remove spurious initialization in `profiling_cmd_name_for_redirectable_block` --- src/parse_execution.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse_execution.cpp b/src/parse_execution.cpp index 116804ffc..9f09ed3e3 100644 --- a/src/parse_execution.cpp +++ b/src/parse_execution.cpp @@ -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(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"...");