aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2021-09-02 13:03:21 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2021-09-02 13:03:21 +0200
commitba1b763102b89bca2711e921cf3083d8487b8c96 (patch)
treeaf7e8dcb01e5329a3e5a07c98cb4c3a803e48d4c
parente04267844a9bbf97c2e85c919b84dfe498ab0302 (diff)
downloadpostgresql-ba1b763102b89bca2711e921cf3083d8487b8c96.tar.gz
postgresql-ba1b763102b89bca2711e921cf3083d8487b8c96.zip
Remove superfluous variable assignment
Commit a4205fa00 moved setting conn to NULL directly after the call to PQfinish, but the original conn = NULL; remained a few lines down. Fix by removing the superfluous assignment. Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> Discussion: https://postgr.es/m/CALj2ACVRiNvMDHYQGiRrGs2Z9dOydfLh2MymEk9i8CSn23UtCg@mail.gmail.com
-rw-r--r--src/bin/pg_basebackup/pg_receivewal.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/pg_receivewal.c
index 4474273daf4..9d1843728d7 100644
--- a/src/bin/pg_basebackup/pg_receivewal.c
+++ b/src/bin/pg_basebackup/pg_receivewal.c
@@ -449,8 +449,6 @@ StreamLog(void)
FreeWalDirectoryMethod();
pg_free(stream.walmethod);
-
- conn = NULL;
}
/*