commit 7db3e4d946f3c1fb21d50b8c423273c6b48dc9b6
parent bfffa2d68dcbbc7dd2ce93d2f1339e3546cfa5a8
Author: Joris Vink <joris@coders.se>
Date: Wed, 19 Sep 2018 07:18:46 +0200
fix compare match on db name.
from Kevin Lam via patches@
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pgsql.c b/src/pgsql.c
@@ -678,7 +678,7 @@ pgsql_conn_cleanup(struct pgsql_conn *conn)
PQfinish(conn->db);
LIST_FOREACH(pgsqldb, &pgsql_db_conn_strings, rlist) {
- if (strcmp(pgsqldb->name, conn->name)) {
+ if (!strcmp(pgsqldb->name, conn->name)) {
pgsqldb->conn_count--;
break;
}