From cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 30 Jul 2012 21:53:15 +1000 Subject: ldb: Add parameter to avoid NULL format string flagged by -Werror=format Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Mon Jul 30 15:48:53 CEST 2012 on sn-devel-104 --- lib/ldb/ldb_map/ldb_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ldb/ldb_map/ldb_map.c b/lib/ldb/ldb_map/ldb_map.c index d35e5c604fc..af3d799fc67 100644 --- a/lib/ldb/ldb_map/ldb_map.c +++ b/lib/ldb/ldb_map/ldb_map.c @@ -1015,7 +1015,7 @@ static int map_init_dns(struct ldb_module *module, struct ldb_map_context *data, return LDB_ERR_OPERATIONS_ERROR; } - ret = ldb_search(ldb, data, &res, dn, LDB_SCOPE_BASE, attrs, NULL); + ret = ldb_search(ldb, data, &res, dn, LDB_SCOPE_BASE, attrs, "(|(objectClass=*)(dn=*))"); talloc_free(dn); if (ret != LDB_SUCCESS) { return ret; -- cgit v1.2.1