From 363121235e50e3ccd429996e09b6280df0cb8507 Mon Sep 17 00:00:00 2001 From: godeffroy Date: Mon, 31 Aug 2020 10:15:34 +0200 Subject: [PATCH] PR #3279 - revert to non RVO code (fix) --- native_client/ctcdecode/path_trie.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native_client/ctcdecode/path_trie.cpp b/native_client/ctcdecode/path_trie.cpp index f4c77320..ebb4d924 100644 --- a/native_client/ctcdecode/path_trie.cpp +++ b/native_client/ctcdecode/path_trie.cpp @@ -104,6 +104,8 @@ void PathTrie::get_path_vec(std::vector& output) { // correct order as we walk back down the stack in the lines below. if (parent != nullptr) { parent->get_path_vec(output); + } + if (character != ROOT_) { output.push_back(character); } }