Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 7cfccd3

Browse files
authored
Merge pull request #418 from freeekanayaka/raft-fixture-init-set-n
raft_fixture_init(): set the n field to 0
2 parents 0640890 + ad6c4b2 commit 7cfccd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fixture.c

+1
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,7 @@ static void serverConnectToAll(struct raft_fixture *f, unsigned i)
10401040
int raft_fixture_init(struct raft_fixture *f)
10411041
{
10421042
f->time = 0;
1043+
f->n = 0;
10431044
f->log = logInit();
10441045
if (f->log == NULL) {
10451046
return RAFT_NOMEM;

0 commit comments

Comments
 (0)