diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-04-15 23:11:36 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-04-15 23:11:36 +0200 |
commit | 376de032b514b9f85f9b6ec3a8616aa418a2a413 (patch) | |
tree | 0cc981f3f21ded174fdd37d3372629f0e9960c5f /src/exchangedb/pg_lookup_records_by_table.c | |
parent | 32c6999a83efbd08dcb36997941af8902974081a (diff) | |
download | exchange-376de032b514b9f85f9b6ec3a8616aa418a2a413.tar.xz |
create warnings on missing table syncs
Diffstat (limited to 'src/exchangedb/pg_lookup_records_by_table.c')
-rw-r--r-- | src/exchangedb/pg_lookup_records_by_table.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/exchangedb/pg_lookup_records_by_table.c b/src/exchangedb/pg_lookup_records_by_table.c index 806896e78..aa9ab046d 100644 --- a/src/exchangedb/pg_lookup_records_by_table.c +++ b/src/exchangedb/pg_lookup_records_by_table.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet - Copyright (C) 2020, 2021, 2022 Taler Systems SA + Copyright (C) 2020-2023 Taler Systems SA GNUnet is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published @@ -2321,8 +2321,8 @@ TEH_PG_lookup_records_by_table (void *cls, .cb = cb, .cb_cls = cb_cls }; - GNUNET_PQ_PostgresResultHandler rh; - const char *statement; + GNUNET_PQ_PostgresResultHandler rh = NULL; + const char *statement = NULL; enum GNUNET_DB_QueryStatus qs; switch (table) @@ -2885,7 +2885,9 @@ TEH_PG_lookup_records_by_table (void *cls, " ORDER BY profit_drain_serial_id ASC;"); rh = &lrbt_cb_table_profit_drains; break; - default: + } + if (NULL == rh) + { GNUNET_break (0); return GNUNET_DB_STATUS_HARD_ERROR; } |