const char *dns = NULL;
const char *netbios = NULL;
struct ldb_dn *nc_dn = NULL;
- struct dom_sid sid = {};
+ struct dom_sid sid = {
+ .num_auths = 0,
+ };
NTSTATUS status;
*_tdo = NULL;
size_t l1 = 0;
const char *p1 = NULL;
size_t num_comp1 = 0;
- uint16_t comp1[UINT8_MAX] = {};
+ uint16_t comp1[UINT8_MAX] = {0};
size_t l2 = 0;
const char *p2 = NULL;
size_t num_comp2 = 0;
- uint16_t comp2[UINT8_MAX] = {};
+ uint16_t comp2[UINT8_MAX] = {0};
size_t i;
if (s1 != NULL) {
const char *dns = NULL;
const char *netbios = NULL;
struct ldb_dn *nc_dn = NULL;
- struct dom_sid sid = {};
- struct lsa_ForestTrustRecord e = {};
+ struct dom_sid sid = {
+ .num_auths = 0,
+ };
+ struct lsa_ForestTrustRecord e = {
+ .flags = 0,
+ };
struct lsa_ForestTrustDomainInfo *d = NULL;
struct lsa_StringLarge *t = NULL;
bool match = false;
for (i=0; (tln_el != NULL) && i < tln_el->num_values; i++) {
const struct ldb_val *v = &tln_el->values[i];
const char *dns = (const char *)v->data;
- struct lsa_ForestTrustRecord e = {};
+ struct lsa_ForestTrustRecord e = {
+ .flags = 0,
+ };
struct lsa_StringLarge *t = NULL;
bool match = false;
NTSTATUS status;
*/
for (ni = 0; ni < nfti->count; ni++) {
const struct lsa_ForestTrustRecord *nftr = nfti->entries[ni];
- struct lsa_ForestTrustRecord tftr = {};
+ struct lsa_ForestTrustRecord tftr = {
+ .flags = 0,
+ };
const char *ndns = NULL;
bool ignore_new = false;
bool found_old = false;
*/
for (ni = 0; ni < nfti->count; ni++) {
const struct lsa_ForestTrustRecord *nftr = nfti->entries[ni];
- struct lsa_ForestTrustRecord tftr = {};
+ struct lsa_ForestTrustRecord tftr = {
+ .flags = 0,
+ };
const struct lsa_ForestTrustDomainInfo *nd = NULL;
const char *ndns = NULL;
const char *nnbt = NULL;
struct samr_Password **_previous)
{
TALLOC_CTX *frame = talloc_stackframe();
- struct samr_Password __current = {};
- struct samr_Password __previous = {};
+ struct samr_Password __current = {
+ .hash = {0},
+ };
+ struct samr_Password __previous = {
+ .hash = {0},
+ };
struct samr_Password *current = NULL;
struct samr_Password *previous = NULL;
const struct ldb_val *blob = NULL;
enum ndr_err_code ndr_err;
- struct trustAuthInOutBlob incoming = {};
+ struct trustAuthInOutBlob incoming = {
+ .count = 0,
+ };
uint32_t i;
if (_current != NULL) {