diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2023-05-09 20:40:43 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2023-05-09 21:45:59 +0200 |
commit | dc5b0fb0d35b9758f6eac7b0bd144db00eef7216 (patch) | |
tree | 01a0c662abce66d32144e599f1af84d99391a80c /src/util/age_restriction.c | |
parent | d1379e492de19070a8f7c2c3dba70f39fe956888 (diff) | |
download | exchange-dc5b0fb0d35b9758f6eac7b0bd144db00eef7216.tar.xz |
Fix age mask parsing from config
- initialize age mask to zero
- drop default bitstring for age mask, use string instead
-remove default age mask bits, use string instead
-strdup
Diffstat (limited to 'src/util/age_restriction.c')
-rw-r--r-- | src/util/age_restriction.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/age_restriction.c b/src/util/age_restriction.c index beb68e5a6..cf81d915b 100644 --- a/src/util/age_restriction.c +++ b/src/util/age_restriction.c @@ -513,6 +513,9 @@ TALER_parse_age_group_string ( unsigned int val = 0; char c; + /* reset mask */ + mask->bits = 0; + while (*pos) { c = *pos++; |