From: Volker Lendecke Date: Tue, 28 Jan 2025 05:09:28 +0000 (+0100) Subject: lib: Move a pointer from .data to stack X-Git-Tag: tdb-1.4.13~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dcb086cf5271e29b8445363af80ef5ae839cc1a;p=thirdparty%2Fsamba.git lib: Move a pointer from .data to stack Why was this declared static? ... Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- 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;