Skip to content

Commit ac184d5

Browse files
slarenjart
authored andcommitted
Always initialize mm_addr and mm_length in llama_model
1 parent 276e5b7 commit ac184d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ struct llama_model {
150150
std::vector<uint8_t> buf;
151151

152152
// model memory mapped file
153-
void * mm_addr;
154-
size_t mm_length;
153+
void * mm_addr = NULL;
154+
size_t mm_length = 0;
155155

156156
// tensors
157157
int n_loaded;

0 commit comments

Comments
 (0)