Jelajahi Sumber

llava : zero-initialize clip_ctx structure fields with aggregate initialization 908)

Co-authored-by: Stanisław Szymczyk <sszymczy@gmail.com>
fairydreaming 1 tahun lalu
induk
melakukan
f63f603c87
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      examples/llava/clip.cpp

+ 1 - 1
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
     {