From: Georgi Gerganov Date: Mon, 16 Jan 2023 19:44:40 +0000 (+0200) Subject: whisper : fix possible uninitialized variables (#291) X-Git-Tag: upstream/1.7.4~1612 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=8088a977af60e12e2a66df5c4a23844be9304794;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp whisper : fix possible uninitialized variables (#291) --- diff --git a/whisper.cpp b/whisper.cpp index 05bf58e1..5aa3be15 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;