1
0
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:
H1ghBre4k3r 2021-05-03 21:37:22 +02:00 committed by Patrick Rathje
parent f0762bf1dd
commit 33f64b1caa

View File

@ -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;
}