diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-07-02 22:04:29 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:19:10 -0500 |
commit | 355cbde8df75d429906e1e2f6e465b20222b4173 (patch) | |
tree | c5ead5926018eb7f291ca1d421cc5e8d78c2a437 /source3 | |
parent | fe33a3829ac284915667401d7c83c45bca905558 (diff) | |
download | samba-355cbde8df75d429906e1e2f6e465b20222b4173.tar.gz samba-355cbde8df75d429906e1e2f6e465b20222b4173.tar.bz2 samba-355cbde8df75d429906e1e2f6e465b20222b4173.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/auth/auth_util.c | 2 | ||||
-rw-r--r-- | source3/param/loadparm.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) { |