0001-Remove-the-redundant-assignment-in-InjectionPointAtt.patch
application/octet-stream
Filename: 0001-Remove-the-redundant-assignment-in-InjectionPointAtt.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch 0001
Subject: Remove the redundant assignment in InjectionPointAttach
| File | + | − |
|---|---|---|
| src/backend/utils/misc/injection_point.c | 0 | 3 |
From 74d67428d0a5d5993ec62ec0641bfa9101dd8ed8 Mon Sep 17 00:00:00 2001 From: Feilong Meng <feelingmeng@foxmail.com> 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 <feelingmeng@foxmail.com> --- 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