diff --git a/src/whisper.cpp b/src/whisper.cpp index 2c83f7ba..53b07592 100644 --- a/src/whisper.cpp +++ b/src/whisper.cpp @@ -4501,7 +4501,7 @@ static void whisper_grammar_advance_stack( std::vector> & new_stacks) { if (stack.empty()) { - new_stacks.push_back(stack); + new_stacks.emplace_back(); return; }