mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Remove pointless default allocation in _get_node_record()
This commit is contained in:
@@ -2044,9 +2044,7 @@ static RecordStatus
|
||||
_get_node_record(PGconn *conn, char *sqlquery, t_node_info *node_info, bool init_defaults)
|
||||
{
|
||||
int ntuples = 0;
|
||||
PGresult *res = NULL;
|
||||
|
||||
res = PQexec(conn, sqlquery);
|
||||
PGresult *res = PQexec(conn, sqlquery);
|
||||
|
||||
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user