From e0faebdbab2fbce634009d7ff52affced58fdc57 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 21 Jan 2024 11:33:48 +0100 Subject: params argument must not be NULL --- src/backenddb/plugin_merchantdb_postgres.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backenddb/plugin_merchantdb_postgres.c') diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index 87951745..e9cc7efd 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -202,6 +202,9 @@ postgres_create_tables (void *cls) GNUNET_PQ_make_try_execute ("SET search_path TO merchant;"), GNUNET_PQ_EXECUTE_STATEMENT_END }; + struct GNUNET_PQ_QueryParam params[] = { + GNUNET_PQ_query_param_end + }; enum GNUNET_GenericReturnValue ret; conn = GNUNET_PQ_connect_with_cfg (pc->cfg, @@ -214,7 +217,7 @@ postgres_create_tables (void *cls) if (0 > GNUNET_PQ_eval_prepared_non_select (conn, "create_tables", - NULL)) + params)) ret = GNUNET_SYSERR; ret = GNUNET_PQ_exec_sql (conn, "procedures"); -- cgit v1.2.3