Skip to content

Commit c505a2d

Browse files
committed
Fix zero initialization of the other fields.
1 parent ce0d5fb commit c505a2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ bool llama_eval(
551551
};
552552

553553
struct ggml_context * ctx0 = ggml_init(params);
554-
struct ggml_cgraph gf;
554+
ggml_cgraph gf = {};
555555
gf.n_threads = n_threads;
556556

557557
struct ggml_tensor * embd = ggml_new_tensor_1d(ctx0, GGML_TYPE_I32, N);

0 commit comments

Comments
 (0)