Skip to content

Commit

Permalink
bugfix: ISO C doesn't allow empty braces struct initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
skorokhod committed Jun 25, 2017
1 parent df36251 commit 951ed9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/raft_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ int raft_send_appendentries(raft_server_t* me_, raft_node_t* node)
assert(node);
assert(node != me->node);

msg_appendentries_t ae = {};
msg_appendentries_t ae = {0};
ae.term = me->current_term;
ae.leader_commit = raft_get_commit_idx(me_);
ae.prev_log_idx = 0;
Expand Down

0 comments on commit 951ed9c

Please sign in to comment.