summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-06 18:46:41 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-06 14:47:26 +0200
commit4e0fb8b4b1b7eadf315aeb599a079eb1d22a4d22 (patch)
tree5866151f134121bd14a340d70fb6757047b24869 /lib
parent33c79c8731ea0c1ab78583a7c50953c56aea539f (diff)
downloadsamba-4e0fb8b4b1b7eadf315aeb599a079eb1d22a4d22.tar.gz
samba-4e0fb8b4b1b7eadf315aeb599a079eb1d22a4d22.tar.bz2
samba-4e0fb8b4b1b7eadf315aeb599a079eb1d22a4d22.zip
Revert "ldb: Add parameter to avoid NULL format string flagged by -Werror=format"
This reverts commit cddcaf7bd2c272bc578ac1e4f7ec438ab94fc243. -Werror=format is no longer uses when it would cause this to fail. This is a legitimate use of the ldb_search API. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Aug 6 14:47:27 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/ldb_map/ldb_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/ldb_map/ldb_map.c b/lib/ldb/ldb_map/ldb_map.c
index af3d799fc6..d35e5c604f 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, "(|(objectClass=*)(dn=*))");
+ ret = ldb_search(ldb, data, &res, dn, LDB_SCOPE_BASE, attrs, NULL);
talloc_free(dn);
if (ret != LDB_SUCCESS) {
return ret;