svn commit: samba r16766 - branches/SAMBA_3_0/source/auth
branches/SAMBA_3_0/source/param trunk/source/param
vlendec at samba.org
vlendec at samba.org
Sun Jul 2 22:04:30 GMT 2006
Author: vlendec
Date: 2006-07-02 22:04:29 +0000 (Sun, 02 Jul 2006)
New Revision: 16766
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16766
Log:
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
Modified:
branches/SAMBA_3_0/source/auth/auth_util.c
branches/SAMBA_3_0/source/param/loadparm.c
trunk/source/param/loadparm.c
Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_util.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_util.c 2006-07-02 21:58:23 UTC (rev 16765)
+++ branches/SAMBA_3_0/source/auth/auth_util.c 2006-07-02 22:04:29 UTC (rev 16766)
@@ -778,7 +778,7 @@
}
/* 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() );
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c 2006-07-02 21:58:23 UTC (rev 16765)
+++ branches/SAMBA_3_0/source/param/loadparm.c 2006-07-02 22:04:29 UTC (rev 16766)
@@ -1670,7 +1670,7 @@
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) {
Modified: trunk/source/param/loadparm.c
===================================================================
--- trunk/source/param/loadparm.c 2006-07-02 21:58:23 UTC (rev 16765)
+++ trunk/source/param/loadparm.c 2006-07-02 22:04:29 UTC (rev 16766)
@@ -1671,7 +1671,7 @@
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) {
More information about the samba-cvs
mailing list