use correct variable in error message in _allocAH function (pg_backup_archiver.c)

From: Mahendra Singh Thalor <mahi6run(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: use correct variable in error message in _allocAH function (pg_backup_archiver.c)
Date: 2025-04-14 22:21:12
Message-ID: CAKYtNAqu+N-Ab2Fq6wzNSOm_-0N-BMneanYNV1+6kFDXjva1Eg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

In _allocAH function(pg_backup_archiver.c), we were using the *fmt*
variable in switch case for *default case*, but correct variable is
AH->format.

Here, I am attaching a patch for the same.

--
Thanks and Regards
Mahendra Singh Thalor
EnterpriseDB: http://www.enterprisedb.com

Attachment Content-Type Size
v01-use-correct-variable-in-error-message-in-_allocAH-fun.patch application/octet-stream 887 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Nathan Bossart 2025-04-14 22:30:29 Re: ci: Allow running mingw tests by default via environment variable
Previous Message Tom Lane 2025-04-14 21:39:01 Re: not null constraints, again