mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-07-15 13:58:13 +02:00
Records: In iterator_clear, also set sequence numbers to 0
This commit is contained in:
parent
f0762bf1dd
commit
33f64b1caa
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue