diff --git a/examples/speculative-simple/speculative-simple.cpp b/examples/speculative-simple/speculative-simple.cpp index b317792e6..90cb50749 100644 --- a/examples/speculative-simple/speculative-simple.cpp +++ b/examples/speculative-simple/speculative-simple.cpp @@ -190,7 +190,7 @@ int main(int argc, char ** argv) { // in this case, we do it for a group of accepted tokens at once // { - llama_token id; + llama_token id = 0; std::string token_str; for (size_t i = 0; i < ids.size(); ++i) {