From 08d2da3443dfd275d5be8e37f45547ca93cfad89 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 8 May 2017 15:29:52 +0900 Subject: [PATCH] Fix pointer usage --- repmgr-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr-client.c b/repmgr-client.c index d3395e90..7224c212 100644 --- a/repmgr-client.c +++ b/repmgr-client.c @@ -1451,7 +1451,7 @@ get_superuser_connection(PGconn **conn, PGconn **superuser_conn, PGconn **privil bool is_superuser; /* this should never happen */ - if (PQstatus(conn) != CONNECTION_OK) + if (PQstatus(*conn) != CONNECTION_OK) { log_error(_("no database connection available")); exit(ERR_INTERNAL);