s4:ldb_parse - Fix the type of an array entry
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 20 Sep 2009 10:47:52 +0000 (12:47 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sun, 20 Sep 2009 10:47:52 +0000 (12:47 +0200)
I found this through a compile warning. Hope that I got this right.

source4/lib/ldb/common/ldb_parse.c

index 7f347c51df564d05a49704a76155f4b0b107b36a..ba16b57da3f3f94892c28c8e3704ea887a682bfe 100644 (file)
@@ -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);