From 74d67428d0a5d5993ec62ec0641bfa9101dd8ed8 Mon Sep 17 00:00:00 2001 From: Feilong Meng Date: Tue, 16 Dec 2025 13:50:12 +0800 Subject: [PATCH] Remove the redundant assignment in InjectionPointAttach Remove the redundant assignment in the InjectionPointAttach function within the injection_point.c file. Author: Feilong Meng --- src/backend/utils/misc/injection_point.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/utils/misc/injection_point.c b/src/backend/utils/misc/injection_point.c index 54a9fe8..4945da4 100644 --- a/src/backend/utils/misc/injection_point.c +++ b/src/backend/utils/misc/injection_point.c @@ -331,11 +331,8 @@ InjectionPointAttach(const char *name, /* Save the entry */ strlcpy(entry->name, name, sizeof(entry->name)); - entry->name[INJ_NAME_MAXLEN - 1] = '\0'; strlcpy(entry->library, library, sizeof(entry->library)); - entry->library[INJ_LIB_MAXLEN - 1] = '\0'; strlcpy(entry->function, function, sizeof(entry->function)); - entry->function[INJ_FUNC_MAXLEN - 1] = '\0'; if (private_data != NULL) memcpy(entry->private_data, private_data, private_data_size); -- 1.8.3.1