From 6b9ccc4ca0a5cb35c6cc76a8d5247ac914561d64 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 May 2015 09:53:31 +0200 Subject: fixing misc. minor bugs, towards getting testcases to work --- src/pq/db_pq.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pq/db_pq.c') diff --git a/src/pq/db_pq.c b/src/pq/db_pq.c index 72a9370ed..42ce3fa71 100644 --- a/src/pq/db_pq.c +++ b/src/pq/db_pq.c @@ -60,6 +60,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn, break; case TALER_PQ_QF_RSA_PUBLIC_KEY: case TALER_PQ_QF_RSA_SIGNATURE: + case TALER_PQ_QF_TIME_ABSOLUTE: len++; break; default: @@ -67,6 +68,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn, GNUNET_assert (0); break; } + i++; } /* new scope to allow stack allocation without alloca */ @@ -190,6 +192,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn, GNUNET_assert (0); break; } + i++; } GNUNET_assert (off == len); res = PQexecPrepared (db_conn, @@ -200,7 +203,7 @@ TALER_PQ_exec_prepared (PGconn *db_conn, param_formats, 1); for (off = 0; off < soff; off++) - GNUNET_free (scratch[soff]); + GNUNET_free (scratch[off]); return res; } } -- cgit v1.2.3