]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llava : zero-initialize clip_ctx structure fields with aggregate initialization 908)
authorfairydreaming <redacted>
Wed, 21 Aug 2024 07:45:49 +0000 (09:45 +0200)
committerGitHub <redacted>
Wed, 21 Aug 2024 07:45:49 +0000 (09:45 +0200)
Co-authored-by: Stanisław Szymczyk <redacted>
examples/llava/clip.cpp

index 94d8294cd02cc3f8a7847fa487ab410798b57710..7e9fa320aec44b040351d1fbf4ba089ca6ca236b 100644 (file)
@@ -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
     {