diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-20 12:47:52 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-09-20 12:47:52 +0200 |
commit | 52650f109dd12545db78fb4345d70dc83273b10b (patch) | |
tree | d6ce56137be07a579546cfff37db455bff56f05e /source4 | |
parent | b8e65e697496f079ccb9bc4370397cf3b4c3d3c0 (diff) | |
download | samba-52650f109dd12545db78fb4345d70dc83273b10b.tar.gz samba-52650f109dd12545db78fb4345d70dc83273b10b.tar.xz samba-52650f109dd12545db78fb4345d70dc83273b10b.zip |
s4:ldb_parse - Fix the type of an array entry
I found this through a compile warning. Hope that I got this right.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb_parse.c | 2 |
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 7f347c51df5..ba16b57da3f 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); |