From 347948b79fc6e01e6809eefd323d6476ede3d970 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 1 Apr 2019 14:50:19 +0900 Subject: [PATCH] Fix default return value in alter_system_int() --- dbutils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbutils.c b/dbutils.c index a66ee72a6..5b2481479 100644 --- a/dbutils.c +++ b/dbutils.c @@ -1109,7 +1109,7 @@ alter_system_int(PGconn *conn, const char *name, int value) { PQExpBufferData query; PGresult *res = NULL; - bool success = false; + bool success = true; initPQExpBuffer(&query); appendPQExpBuffer(&query, @@ -1125,7 +1125,6 @@ alter_system_int(PGconn *conn, const char *name, int value) success = false; } - termPQExpBuffer(&query); PQclear(res);