From f025a151c350299e67f4801fd5cde178f3a5a552 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 16 Jan 2023 21:44:40 +0200 Subject: [PATCH] whisper : fix possible uninitialized variables (#291) --- whisper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;