From 8088a977af60e12e2a66df5c4a23844be9304794 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 05bf58e..5aa3be1 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;