Remove useless code in InjectionPointAttach()
authorMichael Paquier <michael@paquier.xyz>
Tue, 16 Dec 2025 23:58:58 +0000 (08:58 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 16 Dec 2025 23:58:58 +0000 (08:58 +0900)
commit1d325ad99cb2dec0e8b45ba36909ee0a497d2a57
treec3976e5e513d9c55f890578ac42ab8ecb2600e36
parent0a90df58cf38cf68d59c6841513be98aeeff250e
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
src/backend/utils/misc/injection_point.c