]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Move a pointer from .data to stack
authorVolker Lendecke <vl@samba.org>
Tue, 28 Jan 2025 05:09:28 +0000 (06:09 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Feb 2025 00:07:30 +0000 (00:07 +0000)
Why was this declared static? ...

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/string_replace.c

index fb0f599efef21ee55ab87d6170fd53454e76bc89..fdf32276a57f47bd9a43af1f73805efa97ed2d79 100644 (file)
@@ -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;