Skip to content

Commit

Permalink
whisper : fix possible uninitialized variables (ggerganov#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored and iThalay committed Sep 23, 2024
1 parent 7c73b2f commit f025a15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3091,10 +3091,10 @@ static std::vector<whisper_token_data> whisper_sample_token_topk(
std::vector<whisper_token_data> 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;
Expand Down

0 comments on commit f025a15

Please sign in to comment.