Skip to content

Commit

Permalink
llava : zero-initialize clip_ctx structure fields with aggregate init…
Browse files Browse the repository at this point in the history
…ialization 908)

Co-authored-by: Stanisław Szymczyk <[email protected]>
  • Loading branch information
fairydreaming and sszymczy authored Aug 21, 2024
1 parent 8455340 commit f63f603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/llava/clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
}
}

clip_ctx * new_clip = new clip_ctx;
clip_ctx * new_clip = new clip_ctx{};

// update projector type
{
Expand Down

0 comments on commit f63f603

Please sign in to comment.