diff --git a/whisper.cpp b/whisper.cpp index 05bf58e16e3..5aa3be1533b 100644 --- a/whisper.cpp +++ b/whisper.cpp @@ -3091,10 +3091,10 @@ static std::vector whisper_sample_token_topk( std::vector result; result.reserve(k); - whisper_token tid; + whisper_token tid = vocab.token_beg; - float pt; - float ptsum; + float pt = 0.0; + float ptsum = 0.0; { double sum_ts = 0.0;