1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

VLV: initialise struct using names for clarity

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2016-03-23 12:11:16 +13:00 committed by Garming Sam
parent 26cfd75683
commit 34d2bfe5de

View File

@ -229,19 +229,20 @@ static int vlv_gt_eq_to_index(struct vlv_context *ac,
const struct ldb_schema_attribute *a;
struct GUID *result = NULL;
struct vlv_sort_context context;
struct ldb_val value = {
.data = (uint8_t *)vlv_details->match.gtOrEq.value,
.length = vlv_details->match.gtOrEq.value_len
};
ldb = ldb_module_get_ctx(ac->module);
a = ldb_schema_attribute_by_name(ldb, sort_details->attributeName);
context = (struct vlv_sort_context){
ldb,
a->syntax->comparison_fn,
sort_details->attributeName,
ac,
LDB_SUCCESS,
{
(uint8_t *)vlv_details->match.gtOrEq.value,
vlv_details->match.gtOrEq.value_len
}
.ldb = ldb,
.comparison_fn = a->syntax->comparison_fn,
.attr = sort_details->attributeName,
.mem_ctx = ac,
.status = LDB_SUCCESS,
.value = value
};
if (sort_details->reverse) {