From: fairydreaming Date: Wed, 21 Aug 2024 07:45:49 +0000 (+0200) Subject: llava : zero-initialize clip_ctx structure fields with aggregate initialization 908) X-Git-Tag: upstream/0.0.4488~876 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=f63f603c879c2232eaeded8c0aeba4244471d720;p=pkg%2Fggml%2Fsources%2Fllama.cpp llava : zero-initialize clip_ctx structure fields with aggregate initialization 908) Co-authored-by: Stanisław Szymczyk --- diff --git a/examples/llava/clip.cpp b/examples/llava/clip.cpp index 94d8294c..7e9fa320 100644 --- a/examples/llava/clip.cpp +++ b/examples/llava/clip.cpp @@ -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 {