From 93fe40c5a74d81a87cc8df3660d3fb56b5356ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Mon, 29 Nov 2021 10:14:23 +0100 Subject: fixed signednes issue --- src/util/extension_age_restriction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3