From dd7f94a9e2bcab626b6c0d8eb498259ed132cc9b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 20 Sep 2009 15:45:53 -0700 Subject: [PATCH] s4-dsdb: fixed a printf format warning --- source4/dsdb/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 1fe5979c694..126f9fa8292 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -1454,7 +1454,7 @@ bool samdb_is_capable_dc(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, samdb_base_dn(ldb), "nTMixedDomain", NULL); if (errmsg != NULL) - *errmsg = talloc_asprintf(mem_ctx, ""); + *errmsg = talloc_strdup(mem_ctx, ""); if (level_forest == -1 || level_domain == -1 || level_domain_mixed == -1) { ret = false; -- 2.11.4.GIT