aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-02-24 23:48:47 +0100
committerChristian Grothoff <christian@grothoff.org>2020-02-24 23:48:47 +0100
commit01439e25d844b3169fa61c2527b4af5c948a2e65 (patch)
treef4437236395e9966b31b9750ab23728769579120
parent4dc1dfc420503d432f7b3b7b50286e806e6f8b86 (diff)
downloadgnunet-01439e25d844b3169fa61c2527b4af5c948a2e65.tar.gz
gnunet-01439e25d844b3169fa61c2527b4af5c948a2e65.zip
do not segv if there is no postgres
-rw-r--r--src/pq/test_pq.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pq/test_pq.c b/src/pq/test_pq.c
index 7bcb10980..b09354af8 100644
--- a/src/pq/test_pq.c
+++ b/src/pq/test_pq.c
@@ -238,6 +238,12 @@ main (int argc,
238 NULL, 238 NULL,
239 es, 239 es,
240 NULL); 240 NULL);
241 if (NULL == db)
242 {
243 fprintf (stderr,
244 "Cannot run test, database connection failed\n");
245 return 77;
246 }
241 if (CONNECTION_OK != PQstatus (db->conn)) 247 if (CONNECTION_OK != PQstatus (db->conn))
242 { 248 {
243 fprintf (stderr, 249 fprintf (stderr,