Remove superfluous variable assignment
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 2 Sep 2021 11:03:21 +0000 (13:03 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Thu, 2 Sep 2021 11:03:21 +0000 (13:03 +0200)
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

src/bin/pg_basebackup/pg_receivewal.c

index 4474273daf42b0f799012c035456e45cc7cce2ec..9d1843728d742678e7f5174906fea5971c23d540 100644 (file)
@@ -449,8 +449,6 @@ StreamLog(void)
 
        FreeWalDirectoryMethod();
        pg_free(stream.walmethod);
-
-       conn = NULL;
 }
 
 /*