pgsql: Remove useless code in InjectionPointAttach()

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove useless code in InjectionPointAttach()
Date: 2025-12-16 23:59:14
Message-ID: E1vVewj-0019H8-2E@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove useless code in InjectionPointAttach()

strlcpy() ensures that a target string is zero-terminated, so there is
no need to enforce it a second time in this code. This simplification
could have been done in 0eb23285a257.

Author: Feilong Meng <feelingmeng(at)foxmail(dot)com>
Reviewed-by: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://postgr.es/m/tencent_771178777C5BC17FCB7F7A1771CD1FFD5708@qq.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1d325ad99cb2dec0e8b45ba36909ee0a497d2a57

Modified Files
--------------
src/backend/utils/misc/injection_point.c | 3 ---
1 file changed, 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2025-12-17 00:14:48 pgsql: WAL-log inplace update before revealing it to other sessions.
Previous Message Jeff Davis 2025-12-16 23:42:40 pgsql: downcase_identifier(): use method table from locale provider.