From ba1b763102b89bca2711e921cf3083d8487b8c96 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Thu, 2 Sep 2021 13:03:21 +0200 Subject: [PATCH] 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 Discussion: https://postgr.es/m/CALj2ACVRiNvMDHYQGiRrGs2Z9dOydfLh2MymEk9i8CSn23UtCg@mail.gmail.com --- src/bin/pg_basebackup/pg_receivewal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/pg_basebackup/pg_receivewal.c b/src/bin/pg_basebackup/pg_receivewal.c index 4474273daf..9d1843728d 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; } /*