projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc1dfc
)
do not segv if there is no postgres
author
Christian Grothoff
<christian@grothoff.org>
Mon, 24 Feb 2020 22:48:47 +0000
(23:48 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 24 Feb 2020 22:48:47 +0000
(23:48 +0100)
src/pq/test_pq.c
patch
|
blob
|
history
diff --git
a/src/pq/test_pq.c
b/src/pq/test_pq.c
index 7bcb1098077e7642f88de0c439a35bd3873ce299..b09354af89a8b2e6c826fddc2c7c5fb760d7ebe2 100644
(file)
--- 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,