aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-18 15:01:23 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-19 10:52:51 +0200
commitaa7793b28368c406b2b9043d33f9af203c0f513f (patch)
tree37cafb64f84aaf34650227632e90a293a0096aee
parent9dafa9305a60a238b2b4b814e2029a2ae68bca87 (diff)
fix compiler warning
-rw-r--r--src/backenddb/pg_insert_token_family_key.c4
1 files 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[] = {