TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname = "lease_request.dat";
const char *fname2 = "lease_request.2.dat";
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h = {{0}};
- struct smb2_handle hnew = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle hnew = {};
NTSTATUS status;
const char *fname = "lease_upgrade.dat";
bool ret = true;
struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
- struct smb2_handle h = {
- .data = {},
- };
- struct smb2_handle hnew = {
- .data = {},
- };
+ struct smb2_handle h = {};
+ struct smb2_handle hnew = {};
NTSTATUS status;
struct smb2_create io;
struct smb2_lease ls;
struct smb2_tree *tree)
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
- struct smb2_handle h = {
- .data = {0},
- };
- struct smb2_handle h2 = {
- .data = {0},
- };
- struct smb2_handle hnew = {
- .data = {0},
- };
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle hnew = {};
NTSTATUS status;
struct smb2_create io;
struct smb2_lease ls;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h, h2, h3;
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
NTSTATUS status;
const char *fname = "lease_break.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname = "lease_nobreakself.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname = "lease_statopen.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
NTSTATUS status;
const char *fname = "lease_statopen2.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname = "lease_statopen3.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
NTSTATUS status;
const char *fname = "lease_statopen2.dat";
bool ret = true;
struct smb2_tree *tree)
{
const char *fname = "lease_statopen4.dat";
- struct smb2_handle h1 = {{0}};
+ struct smb2_handle h1 = {};
uint32_t caps;
size_t i;
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h = {
- .data = {0},
- };
- struct smb2_handle h2 = {
- .data = {0},
- };
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname = "lease_oplock.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "lease_multibreak.dat";
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
+ struct smb2_handle h1 = {};
uint64_t parent = LEASE2;
NTSTATUS status;
const char *fname = "lease_v2_request_parent.dat";
struct smb2_create io;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h1 = {{0}};
+ struct smb2_handle h1 = {};
NTSTATUS status;
const char *fname = "lease_break_twice.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls1, ls2, ls2t, ls3, ls4;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
- struct smb2_handle h4 = {{0}};
- struct smb2_handle h5 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
+ struct smb2_handle h4 = {};
+ struct smb2_handle h5 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "lease_v2_request.dat";
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h;
+ struct smb2_handle h = {};
const char *fname = "lease_v2_epoch1.dat";
bool ret = true;
NTSTATUS status;
struct smb2_create io2;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "lease_complex1.dat";
struct smb2_create io2;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "lease_v2_complex1.dat";
struct smb2_create io2;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle h2 = {};
struct smb2_request *req2 = NULL;
struct smb2_lease_break_ack ack = {};
NTSTATUS status;
struct smb2_create io;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h = {{0}};
- struct smb2_handle hnew = {{0}};
- struct smb2_handle h1b = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle hnew = {};
+ struct smb2_handle h1b = {};
NTSTATUS status;
const char *fname = "lease_timeout.dat";
bool ret = true;
struct smb2_lease ls1;
struct smb2_lease ls2;
struct smb2_lease ls3;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
- struct smb2_handle h3 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
+ struct smb2_handle h3 = {};
union smb_setfileinfo sinfo;
NTSTATUS status;
const char *fname_src = "lease_rename_src.dat";
struct smb2_create io;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h = {{0}};
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h = {};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
union smb_setfileinfo sinfo;
const char *fname = "lease_v2_rename_src.dat";
const char *fname_dst = "lease_v2_rename_dst.dat";
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls1;
- struct smb2_handle h, h1, h2;
+ struct smb2_handle h = {}, h1 = {}, h2 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "dynamic_path.dat";
struct smb2_tree *tree2 = NULL;
struct smb2_transport *transport1 = tree1->session->transport;
struct smb2_transport *transport2;
- struct smb2_handle h1 = {{ 0 }};
- struct smb2_handle h2 = {{ 0 }};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
const char *fname = "lease_unlink.dat";
uint32_t caps;
struct smb2_create io1;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname1 = "duplicate_create1.dat";
const char *fname2 = "duplicate_create2.dat";
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
NTSTATUS status;
const char *fname1 = "duplicate_open1.dat";
const char *fname2 = "duplicate_open2.dat";
struct smb2_create io2;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "lease_v1_bug_15148.dat";
struct smb2_create io2;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h1 = {{0}};
- struct smb2_handle h2 = {{0}};
+ struct smb2_handle h1 = {};
+ struct smb2_handle h2 = {};
struct smb2_write w;
NTSTATUS status;
const char *fname = "lease_v2_bug_15148.dat";