commit 928eb9561f331fb7491c562c7651ea7c2549e0cb
parent d0229a5706a6010c34628da918b6c047392f0dd4
Author: Florian Dold <florian@dold.me>
Date: Wed, 4 Aug 2021 12:04:20 +0200
avoid compiler warning
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c
@@ -1331,7 +1331,7 @@ static void
postgres_expire_locks (void *cls)
{
struct PostgresClosure *pg = cls;
- struct GNUNET_TIME_Absolute now;
+ struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_absolute_time (&now),
GNUNET_PQ_query_param_end
@@ -1340,7 +1340,6 @@ postgres_expire_locks (void *cls)
enum GNUNET_DB_QueryStatus qs2;
check_connection (pg);
- now = GNUNET_TIME_absolute_get ();
qs1 = GNUNET_PQ_eval_prepared_non_select (pg->conn,
"unlock_products",
params);