pgsql: Remove useless code in InjectionPointAttach() - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Remove useless code in InjectionPointAttach()
Date
Msg-id E1vVewj-0019H8-2E@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Jeff Davis
Date:
Subject: pgsql: downcase_identifier(): use method table from locale provider.
Next
From: Noah Misch
Date:
Subject: pgsql: WAL-log inplace update before revealing it to other sessions.