From 355cbde8df75d429906e1e2f6e465b20222b4173 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 2 Jul 2006 22:04:29 +0000 Subject: r16766: A warning found by RHEL3. This might actually be 3.0.23 code, maybe there are vasprintf implementations that don't like a NULL format. Volker (This used to be commit 03c665c307e518c9ff66096904873266b145637c) --- source3/auth/auth_util.c | 2 +- source3/param/loadparm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index df4a4e1b38..c5ce55bc8c 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -778,7 +778,7 @@ static NTSTATUS create_builtin_administrators( void ) } /* add root */ - if ( (ctx = talloc_init(NULL)) == NULL ) { + if ( (ctx = talloc_init("create_builtin_administrators")) == NULL ) { return NT_STATUS_NO_MEMORY; } fstr_sprintf( root_name, "%s\\root", get_global_sam_name() ); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index a3a41c7664..b6c027f871 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1670,7 +1670,7 @@ void lp_TALLOC_FREE(void) TALLOC_CTX *tmp_talloc_ctx(void) { if (lp_talloc == NULL) { - lp_talloc = talloc_init(NULL); + lp_talloc = talloc_init("tmp_talloc_ctx"); } if (lp_talloc == NULL) { -- cgit