Commit 07241e77 authored by Willem Thiart's avatar Willem Thiart
Browse files

Refactor: use = {} to zero struct

parent a74d299f
......@@ -641,13 +641,11 @@ int raft_send_appendentries(raft_server_t* me_, raft_node_t* node)
if (!(me->cb.send_appendentries))
return -1;
msg_appendentries_t ae;
msg_appendentries_t ae = {};
ae.term = me->current_term;
ae.leader_commit = raft_get_commit_idx(me_);
ae.prev_log_idx = 0;
ae.prev_log_term = 0;
ae.n_entries = 0;
ae.entries = NULL;
int next_idx = raft_node_get_next_idx(node);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment