]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:param: rename lp_string() argument ctx to mem_ctx
authorRalph Boehme <slow@samba.org>
Thu, 31 Oct 2019 14:12:35 +0000 (15:12 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:31 +0000 (10:25 +0000)
Minimizes diff of subsequent patch.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/param/loadparm.c

index ff11146fe982cb60ee9f37d06ec034827c5d042a..9a1c6107520cbfb6a17d17299d726a09c1d8ffc0 100644 (file)
@@ -991,7 +991,7 @@ static struct loadparm_context *setup_lp_context(TALLOC_CTX *mem_ctx)
  callers without affecting the source string.
 ********************************************************************/
 
-char *lp_string(TALLOC_CTX *ctx, const char *s)
+char *lp_string(TALLOC_CTX *mem_ctx, const char *s)
 {
        char *ret;
 
@@ -1007,14 +1007,14 @@ char *lp_string(TALLOC_CTX *ctx, const char *s)
                return NULL;
        }
 
-       ret = talloc_sub_basic(ctx,
+       ret = talloc_sub_basic(mem_ctx,
                        get_current_username(),
                        current_user_info.domain,
                        s);
        if (trim_char(ret, '\"', '\"')) {
                if (strchr(ret,'\"') != NULL) {
                        TALLOC_FREE(ret);
-                       ret = talloc_sub_basic(ctx,
+                       ret = talloc_sub_basic(mem_ctx,
                                        get_current_username(),
                                        current_user_info.domain,
                                        s);