mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2024-12-05 00:55:43 +01:00
Records: In iterator_clear, also set sequence numbers to 0
This commit is contained in:
parent
f0762bf1dd
commit
33f64b1caa
@ -128,6 +128,8 @@ record_t* ens_records_iterator_next(record_iterator_t* iter) {
|
||||
int ens_record_iterator_clear(record_iterator_t* iter) {
|
||||
// clear all relevant fields in the iterator
|
||||
iter->finished = true;
|
||||
iter->sn_next = 0;
|
||||
iter->sn_end = 0;
|
||||
memset(&iter->current, 0, sizeof(iter->current));
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user