Ver Fonte

Always initialize mm_addr and mm_length in llama_model

Slaren há 2 anos atrás
pai
commit
ac184d5147
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      llama.cpp

+ 2 - 2
llama.cpp

@@ -150,8 +150,8 @@ struct llama_model {
     std::vector<uint8_t> buf;
 
     // model memory mapped file
-    void * mm_addr;
-    size_t mm_length;
+    void * mm_addr = NULL;
+    size_t mm_length = 0;
 
     // tensors
     int n_loaded;