gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: do not segv if there is no postgres


From: gnunet
Subject: [gnunet] branch master updated: do not segv if there is no postgres
Date: Mon, 24 Feb 2020 23:52:52 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 01439e25d do not segv if there is no postgres
01439e25d is described below

commit 01439e25d844b3169fa61c2527b4af5c948a2e65
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Feb 24 23:48:47 2020 +0100

    do not segv if there is no postgres
---
 src/pq/test_pq.c | 6 ++++++
 1 file changed, 6 insertions(+)

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,
                           NULL,
                           es,
                           NULL);
+  if (NULL == db)
+  {
+    fprintf (stderr,
+             "Cannot run test, database connection failed\n");
+    return 77;
+  }
   if (CONNECTION_OK != PQstatus (db->conn))
   {
     fprintf (stderr,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]