summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-23 10:55:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:35 -0500
commit8ad26badea9fdf6b5ab18ec0a9bfc8c46fe5a7ff (patch)
tree69a78b4b34d4784ce32788026d83751885f5cfa5 /source4/lib/ldb/tools
parentd68a16988665edc299f385783b84fd166268a956 (diff)
downloadsamba-8ad26badea9fdf6b5ab18ec0a9bfc8c46fe5a7ff.tar.gz
samba-8ad26badea9fdf6b5ab18ec0a9bfc8c46fe5a7ff.tar.bz2
samba-8ad26badea9fdf6b5ab18ec0a9bfc8c46fe5a7ff.zip
r17745: got rid of the final asprintf() in ldb
(This used to be commit 21377a607647c847c6902b685555a0206e61c6dd)
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r--source4/lib/ldb/tools/ldbtest.c2
1 files changed, 1 insertions, 1 deletions
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;