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
  • Loading branch information
sszymczy committed Aug 18, 2024
1 parent 554b049 commit 6a7e289
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 @@ -1108,7 +1108,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 6a7e289

Please sign in to comment.