Skip to content

Commit 52c2ca2

Browse files
committed
use C++11 initializer syntax
1 parent db4d6da commit 52c2ca2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/server/server.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,7 +1862,7 @@ struct server_context {
18621862

18631863
llama_context_params cparams_dft;
18641864

1865-
llama_batch batch;
1865+
llama_batch batch = {};
18661866

18671867
bool clean_kv_cache = true;
18681868
bool add_bos_token = true;
@@ -1884,8 +1884,6 @@ struct server_context {
18841884

18851885
common_chat_templates_ptr chat_templates;
18861886

1887-
server_context() : batch({}) {
1888-
}
18891887
~server_context() {
18901888
mtmd_free(mctx);
18911889

0 commit comments

Comments
 (0)