From aa7793b28368c406b2b9043d33f9af203c0f513f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ttler?= Date: Thu, 18 Apr 2024 15:01:23 +0200 Subject: fix compiler warning --- src/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 index 30525d5f..849bdc13 100644 --- 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[] = { -- cgit v1.2.3