From 52650f109dd12545db78fb4345d70dc83273b10b Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 20 Sep 2009 12:47:52 +0200 Subject: s4:ldb_parse - Fix the type of an array entry I found this through a compile warning. Hope that I got this right. --- source4/lib/ldb/common/ldb_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c index 7f347c51df..ba16b57da3 100644 --- a/source4/lib/ldb/common/ldb_parse.c +++ b/source4/lib/ldb/common/ldb_parse.c @@ -839,7 +839,7 @@ struct ldb_parse_tree *ldb_parse_tree_copy_shallow(TALLOC_CTX *mem_ctx, switch (ot->operation) { case LDB_OP_AND: case LDB_OP_OR: - nt->u.list.elements = talloc_array(nt, struct ldb_parse_tree, + nt->u.list.elements = talloc_array(nt, struct ldb_parse_tree *, ot->u.list.num_elements); if (!nt->u.list.elements) { talloc_free(nt); -- cgit