s4-dsdb: fixed a printf format warning
authorAndrew Tridgell <tridge@samba.org>
Sun, 20 Sep 2009 22:45:53 +0000 (15:45 -0700)
committerAndrew Tridgell <tridge@samba.org>
Mon, 21 Sep 2009 22:26:31 +0000 (15:26 -0700)
source4/dsdb/common/util.c

index 1fe5979c694860fafe6f4bb42a918cdcaf8f8348..126f9fa8292ba44fbac0710a4b7443fe250e8c62 100644 (file)
@@ -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;