aboutsummaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_contract.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-08-24 23:36:59 +0200
committerChristian Grothoff <christian@grothoff.org>2024-08-24 23:36:59 +0200
commitf7d302f8ccfdf8d41bb05fa5b542b94f04cdc8c2 (patch)
tree299c74a955901b9c5f1ae0dbd0cb184be8291ee1 /src/backend/taler-merchant-httpd_contract.h
parenta80789646ed9610048f3ad71e11f90eded1e52a9 (diff)
fix NULL deref bug
Diffstat (limited to 'src/backend/taler-merchant-httpd_contract.h')
-rw-r--r--src/backend/taler-merchant-httpd_contract.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/backend/taler-merchant-httpd_contract.h b/src/backend/taler-merchant-httpd_contract.h
index 6389cc70..7d29da2e 100644
--- a/src/backend/taler-merchant-httpd_contract.h
+++ b/src/backend/taler-merchant-httpd_contract.h
@@ -176,7 +176,8 @@ struct TALER_MerchantContractOutput
/**
* Coin-based output.
*/
- struct {
+ struct
+ {
/**
* Coins that will be yielded. This excludes any applicable withdraw fees.
*/
@@ -613,7 +614,8 @@ TALER_JSON_spec_choices (const char *name,
*/
struct GNUNET_JSON_Specification
TALER_JSON_spec_token_families (const char *name,
- struct TALER_MerchantContractTokenFamily **families,
+ struct TALER_MerchantContractTokenFamily **
+ families,
unsigned int *families_len);
@@ -630,9 +632,10 @@ TALER_JSON_spec_token_families (const char *name,
* @return #GNUNET_OK on success #GNUNET_NO if no key was found
*/
enum GNUNET_GenericReturnValue
-TMH_find_token_family_key (const char *slug,
- struct GNUNET_TIME_Timestamp valid_after,
- struct TALER_MerchantContractTokenFamily *families,
- unsigned int families_len,
- struct TALER_MerchantContractTokenFamily *family,
- struct TALER_MerchantContractTokenFamilyKey *key); \ No newline at end of file
+TMH_find_token_family_key (
+ const char *slug,
+ struct GNUNET_TIME_Timestamp valid_after,
+ const struct TALER_MerchantContractTokenFamily *families,
+ unsigned int families_len,
+ struct TALER_MerchantContractTokenFamily *family,
+ struct TALER_MerchantContractTokenFamilyKey *key);