diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-22 23:29:15 +0800 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-22 23:29:15 +0800 |
commit | ad09066a8ef65c054b8bd2718b74c038ab139886 (patch) | |
tree | b95083f289f026fedacdbc5ab92a758fac7d5cad /src/json | |
parent | 219dfe1fcdfc848884856bd062d4c4a06c22a12c (diff) |
-minor code cleanup
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/json_helper.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c index b339ff682..9f57c56fc 100644 --- a/src/json/json_helper.c +++ b/src/json/json_helper.c @@ -267,6 +267,9 @@ TALER_JSON_spec_currency_specification ( .size_ptr = NULL }; + memset (r_cspec, + 0, + sizeof (*r_cspec)); return ret; } @@ -345,11 +348,9 @@ TALER_JSON_spec_denomination_group (const char *name, struct GNUNET_JSON_Specification ret = { .cls = (void *) currency, .parser = &parse_denomination_group, - .cleaner = NULL, .field = name, .ptr = group, - .ptr_size = sizeof(*group), - .size_ptr = NULL, + .ptr_size = sizeof(*group) }; return ret; @@ -421,11 +422,8 @@ TALER_JSON_spec_econtract (const char *name, struct GNUNET_JSON_Specification ret = { .parser = &parse_econtract, .cleaner = &clean_econtract, - .cls = NULL, .field = name, - .ptr = econtract, - .ptr_size = 0, - .size_ptr = NULL + .ptr = econtract }; return ret; @@ -526,11 +524,8 @@ TALER_JSON_spec_age_commitment (const char *name, struct GNUNET_JSON_Specification ret = { .parser = &parse_age_commitment, .cleaner = &clean_age_commitment, - .cls = NULL, .field = name, - .ptr = age_commitment, - .ptr_size = 0, - .size_ptr = NULL + .ptr = age_commitment }; return ret; |