svn commit: samba r17745 - in branches/SAMBA_4_0/source/lib/ldb/tools: .

tridge at samba.org tridge at samba.org
Wed Aug 23 10:55:21 GMT 2006


Author: tridge
Date: 2006-08-23 10:55:20 +0000 (Wed, 23 Aug 2006)
New Revision: 17745

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17745

Log:

got rid of the final asprintf() in ldb

Modified:
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbtest.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/tools/ldbtest.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/tools/ldbtest.c	2006-08-23 10:01:07 UTC (rev 17744)
+++ branches/SAMBA_4_0/source/lib/ldb/tools/ldbtest.c	2006-08-23 10:55:20 UTC (rev 17745)
@@ -70,7 +70,7 @@
 		char *name;
 		TALLOC_CTX *tmp_ctx = talloc_new(ldb);
 
-		asprintf(&name, "Test%d", i);
+		name = talloc_asprintf(tmp_ctx, "Test%d", i);
 
 		msg.dn = ldb_dn_build_child(tmp_ctx, "cn", name, basedn);
 		msg.num_elements = 6;



More information about the samba-cvs mailing list