From 0da83b0f725d16e7a687c0ba25fdacb40fd870de Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 21 Jul 2021 18:10:37 +0200 Subject: -fix ftbfs --- src/pq/pq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pq/pq.c b/src/pq/pq.c index 0b6ef8729..b260aa1db 100644 --- a/src/pq/pq.c +++ b/src/pq/pq.c @@ -128,9 +128,11 @@ GNUNET_PQ_extract_result (PGresult *result, struct GNUNET_PQ_ResultSpec *rs, int row) { + unsigned int i; + if (NULL == result) return GNUNET_SYSERR; - for (unsigned int i = 0; NULL != rs[i].conv; i++) + for (i = 0; NULL != rs[i].conv; i++) { struct GNUNET_PQ_ResultSpec *spec; enum GNUNET_GenericReturnValue ret; -- cgit v1.2.3