r16766: A warning found by RHEL3. This might actually be 3.0.23 code, maybe there are
authorVolker Lendecke <vlendec@samba.org>
Sun, 2 Jul 2006 22:04:29 +0000 (22:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:10 +0000 (11:19 -0500)
vasprintf implementations that don't like a NULL format.

Volker

source/auth/auth_util.c
source/param/loadparm.c

index df4a4e1b3887b9935effae57130a540a78b1dc4f..c5ce55bc8c1a8a0b9b4793142b0e47fd4bd0e9a4 100644 (file)
@@ -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() );
index a3a41c7664ddb63c054bf27fd71fbddb43049990..b6c027f8714143456a922ea4bd69834901cb3cc4 100644 (file)
@@ -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) {