forked from weaselab/conflict-set
Fix use of uninitialized memory
This commit is contained in:
@@ -679,6 +679,7 @@ template <class ConflictSet_> void benchConflictSet(const std::string &name) {
|
|||||||
w.begin.len = r.begin.len;
|
w.begin.len = r.begin.len;
|
||||||
w.end.p = r.end.p;
|
w.end.p = r.end.p;
|
||||||
w.end.len = 0;
|
w.end.len = 0;
|
||||||
|
w.writeVersion = version + 1;
|
||||||
writes.push_back(w);
|
writes.push_back(w);
|
||||||
}
|
}
|
||||||
cs.addWrites(writes.data(), writes.size());
|
cs.addWrites(writes.data(), writes.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user