pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove useless code in InjectionPointAttach()
Date: Tue, 16 Dec 2025 23:59:14 +0000
Message-ID: <E1vVewj-0019H8-2E@gemulon.postgresql.org> (raw)

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@foxmail.com>
Reviewed-by: Chao Li <li.evan.chao@gmail.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(-)



Message-ID: <E1vVewj-0019H8-2E@gemulon.postgresql.org>
Permalink:  ../E1vVewj-0019H8-2E@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vVewj-0019H8-2E@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Remove useless code in InjectionPointAttach()
  In-Reply-To: <E1vVewj-0019H8-2E@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox