commit a41b9cce6625d15cef6d3ba23e11fbfaf4e755d5
parent b15e3ce135f51d29d64864f2fdd227326a299947
Author: Christian Blättler <blatc2@bfh.ch>
Date: Thu, 18 Apr 2024 15:01:23 +0200
fix compiler warning
Diffstat:
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[] = {