From 8ad26badea9fdf6b5ab18ec0a9bfc8c46fe5a7ff Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Aug 2006 10:55:20 +0000 Subject: r17745: got rid of the final asprintf() in ldb (This used to be commit 21377a607647c847c6902b685555a0206e61c6dd) --- source4/lib/ldb/tools/ldbtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/tools/ldbtest.c b/source4/lib/ldb/tools/ldbtest.c index 98449ae16b..6cc8dfe19b 100644 --- a/source4/lib/ldb/tools/ldbtest.c +++ b/source4/lib/ldb/tools/ldbtest.c @@ -70,7 +70,7 @@ static void add_records(struct ldb_context *ldb, 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; -- cgit