merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit aa7793b28368c406b2b9043d33f9af203c0f513f
parent 9dafa9305a60a238b2b4b814e2029a2ae68bca87
Author: Christian Blättler <blatc2@bfh.ch>
Date:   Thu, 18 Apr 2024 15:01:23 +0200

fix compiler warning

Diffstat:
Msrc/backenddb/pg_insert_token_family_key.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backenddb/pg_insert_token_family_key.c b/src/backenddb/pg_insert_token_family_key.c @@ -36,7 +36,7 @@ TMH_PG_insert_token_family_key (void *cls, const struct GNUNET_TIME_Timestamp valid_before) { struct PostgresClosure *pg = cls; - const char *cipher; + const char *cipher = NULL; // struct GNUNET_HashCode pub_hash; switch (pub->public_key.cipher) @@ -49,7 +49,7 @@ TMH_PG_insert_token_family_key (void *cls, break; case GNUNET_CRYPTO_BSA_INVALID: /* case listed to make compilers happy */ - GNUNET_assert (0); + return GNUNET_DB_STATUS_HARD_ERROR; } struct GNUNET_PQ_QueryParam params[] = {