pgsql: Fix use of wrong variable in pg_receivewal's get_destination_dir

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix use of wrong variable in pg_receivewal's get_destination_dir
Date: 2022-02-27 00:46:24
Message-ID: E1nO7hf-0003C2-C1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix use of wrong variable in pg_receivewal's get_destination_dir().

The global variable wrongly used is always the one passed to
get_destination_dir(), so there currently are no negative consequences.

Author: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
Discussion: https://postgr.es/m/CALj2ACUT0C2LQwhyLXTQdj8T9SxZa5j7cmu-UOz0cZ8_D5edjg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1155d8b8d52ed8705fd8386eaa64fb05c04170c6

Modified Files
--------------
src/bin/pg_basebackup/pg_receivewal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2022-02-27 01:13:47 pgsql: Run tap tests in src/interfaces/libpq.
Previous Message Andres Freund 2022-02-27 00:11:07 pgsql: Fix warning on mingw due to pid_t width, introduced in fe0972ee5