From 5dcb086cf5271e29b8445363af80ef5ae839cc1a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 28 Jan 2025 06:09:28 +0100 Subject: [PATCH] lib: Move a pointer from .data to stack Why was this declared static? ... Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/string_replace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/string_replace.c b/source3/lib/string_replace.c index fb0f599efef..fdf32276a57 100644 --- a/source3/lib/string_replace.c +++ b/source3/lib/string_replace.c @@ -142,7 +142,7 @@ int string_replace_allocate(connection_struct *conn, char **mapped_name, enum vfs_translate_direction direction) { - static smb_ucs2_t *tmpbuf = NULL; + smb_ucs2_t *tmpbuf = NULL; smb_ucs2_t *ptr = NULL; struct char_mappings *map = NULL; size_t converted_size; -- 2.47.2