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
2 people authored and arthw committed Nov 15, 2024
1 parent 7173168 commit 93b36e4
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 93b36e4

Please sign in to comment.