소스 검색

Always initialize mm_addr and mm_length in llama_model

Slaren 2 년 전
부모
커밋
ac184d5147
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;