Skip to content

Commit 93b36e4

Browse files
fairydreamingsszymczy
authored andcommitted
llava : zero-initialize clip_ctx structure fields with aggregate initialization 908)
Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
1 parent 7173168 commit 93b36e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/llava/clip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ struct clip_ctx * clip_model_load(const char * fname, const int verbosity = 1) {
11121112
}
11131113
}
11141114

1115-
clip_ctx * new_clip = new clip_ctx;
1115+
clip_ctx * new_clip = new clip_ctx{};
11161116

11171117
// update projector type
11181118
{

0 commit comments

Comments
 (0)