summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c2
1 files changed, 1 insertions, 1 deletions
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);