aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2021-11-29 10:14:23 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2021-11-29 10:14:23 +0100
commit93fe40c5a74d81a87cc8df3660d3fb56b5356ded (patch)
treec41be3e2dc3a4d31299fb642f4ddc12088ec9521 /src/util
parenta467ba6a541048d53f77d7e74fd439fac6c5ed31 (diff)
fixed signednes issue
Diffstat (limited to 'src/util')
-rw-r--r--src/util/extension_age_restriction.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/extension_age_restriction.c b/src/util/extension_age_restriction.c
index 6bbfde04c..9c2ff7397 100644
--- a/src/util/extension_age_restriction.c
+++ b/src/util/extension_age_restriction.c
@@ -86,7 +86,7 @@ TALER_parse_age_group_string (char *groups,
{
enum TALER_EXTENSION_ReturnValue ret = TALER_EXTENSION_ERROR_SYS;
char *pos;
- int prev = -1;
+ unsigned int prev = 0;
unsigned int val;
char dummy;
@@ -128,6 +128,7 @@ TALER_parse_age_group_string (char *groups,
}
prev = val;
+ *pos = ':';
groups = pos + 1;
}