gcc error: ‘result’ may be used uninitialized
This wont happen, because ldb will return and error, but the compiler
doesn't understand this.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12930
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
ac->store->num_entries - 1);
for (i = first_i; i <= last_i; i++) {
- struct ldb_result *result;
+ struct ldb_result *result = NULL;
struct GUID *guid = &ac->store->results[i];
ret = vlv_search_by_dn_guid(ac->module, ac, &result, guid,