donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 447046d45e95b8e81ca223d3e66ce709d1a780bd
parent bd99161ff1a6e72f756d85306f5f7436818be267
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Fri, 17 Jul 2026 19:30:41 +0200

check bound first

Diffstat:
Msrc/donaudb/helper.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/donaudb/helper.h b/src/donaudb/helper.h @@ -83,9 +83,9 @@ extern unsigned long long DONAUDB_prep_gen_; } preps[2]; /* 2 ctrs for taler-auditor-sync*/ \ unsigned int off = 0; \ \ - while ( (NULL != preps[off].pg) && \ - (ctx != preps[off].pg) && \ - (off < sizeof(preps) / sizeof(*preps)) ) \ + while ( (off < sizeof(preps) / sizeof(*preps)) && \ + (NULL != preps[off].pg) && \ + (ctx != preps[off].pg) ) \ off++; \ GNUNET_assert (off < \ sizeof(preps) / sizeof(*preps)); \