struct smb2_create io;
const char *fname = BASEDIR "\\creator.txt";
bool ret = true;
- struct smb2_handle handle;
+ struct smb2_handle handle = {{0}};
union smb_fileinfo q;
union smb_setfileinfo set;
struct security_descriptor *sd, *sd_orig, *sd2;
struct smb2_create io;
const char *fname = BASEDIR "\\generic.txt";
bool ret = true;
- struct smb2_handle handle;
+ struct smb2_handle handle = {{0}};
int i;
union smb_fileinfo q;
union smb_setfileinfo set;
struct smb2_create io;
const char *fname = BASEDIR "\\test_owner_bits.txt";
bool ret = true;
- struct smb2_handle handle;
+ struct smb2_handle handle = {{0}};
int i;
union smb_fileinfo q;
union smb_setfileinfo set;
const char *fname1 = BASEDIR "\\inheritance\\testfile";
const char *fname2 = BASEDIR "\\inheritance\\testdir";
bool ret = true;
- struct smb2_handle handle, handle2;
+ struct smb2_handle handle = {{0}};
+ struct smb2_handle handle2 = {{0}};
int i;
union smb_fileinfo q;
union smb_setfileinfo set;
const char *dname = BASEDIR "\\inheritance";
const char *fname1 = BASEDIR "\\inheritance\\testfile";
bool ret = true;
- struct smb2_handle handle, handle2;
+ struct smb2_handle handle = {{0}};
+ struct smb2_handle handle2 = {{0}};
int i, j;
union smb_fileinfo q;
union smb_setfileinfo set;
const char *dname = BASEDIR "\\inheritance";
const char *fname1 = BASEDIR "\\inheritance\\testfile";
bool ret = true;
- struct smb2_handle handle, handle2;
+ struct smb2_handle handle = {{0}};
+ struct smb2_handle handle2 = {{0}};
union smb_fileinfo q;
union smb_setfileinfo set;
struct security_descriptor *sd, *sd_orig=NULL;
const char *fname = DNAME "\\torture_ntcreatex.txt";
const char *dname = DNAME "\\torture_ntcreatex.dir";
NTSTATUS status;
- struct smb2_handle h, h1;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h1 = {{0}};
bool ret = true;
int i;
struct {
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create create;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
struct smb2_find f;
union smb_search_data *d;
struct file_elem files[NFILES] = {};
NTSTATUS status;
struct smb2_create create;
struct smb2_find f;
- struct smb2_handle h;
+ struct smb2_handle h = {{0}};
union smb_search_data *d;
int i, j, file_count = 0;
char **strs = NULL;
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
NTSTATUS status;
char fname[256];
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
struct smb2_lease ls1, ls2;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
NTSTATUS status;
char fname[256];
bool ret = true;
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
- struct smb2_handle h;
+ struct smb2_handle h = {{0}};
struct smb2_lock lck;
struct smb2_lock_element el[2];
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h;
+ struct smb2_handle h = {{0}};
struct smb2_lock lck;
struct smb2_lock_element el[2];
NTSTATUS status;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
struct smb2_lease ls;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
NTSTATUS status;
char fname[256];
bool ret = true;
{
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io1, io2;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
NTSTATUS status;
char fname[256];
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
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, hnew;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle hnew = {{0}};
NTSTATUS status;
const char *fname = "lease_upgrade.dat";
bool ret = true;
TALLOC_CTX *mem_ctx = talloc_new(tctx);
struct smb2_create io;
struct smb2_lease ls;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
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, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
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 h, h2, h3;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
+ struct smb2_handle h3 = {{0}};
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;
+ struct smb2_handle h1 = {{0}};
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;
+ struct smb2_handle h1 = {{0}};
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, h2, h3, h4, h5;
+ 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_write w;
NTSTATUS status;
const char *fname = "lease_v2_request.dat";
struct smb2_create io2;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h, h2, h3;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
+ struct smb2_handle h3 = {{0}};
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, h2, h3;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
+ struct smb2_handle h3 = {{0}};
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, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
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, hnew, h1b;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle hnew = {{0}};
+ struct smb2_handle h1b = {{0}};
NTSTATUS status;
const char *fname = "lease_timeout.dat";
bool ret = true;
struct smb2_create io;
struct smb2_lease ls1;
struct smb2_lease ls2;
- struct smb2_handle h, h1, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
union smb_setfileinfo sinfo;
const char *fname = "lease_v2_rename_src.dat";
const char *fname_dst = "lease_v2_rename_dst.dat";
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[2];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[2];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[2];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[2];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[2];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[2];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
int i;
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[1];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el1[1];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[1];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[1];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[1];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[1];
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2, h3;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
+ struct smb2_handle h3 = {{0}};
uint8_t buf[200];
bool correct = true;
{
NTSTATUS status;
bool ret = true;
- struct smb2_handle h, h2;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h2 = {{0}};
uint8_t buf[200];
struct smb2_lock lck;
struct smb2_lock_element el[1];
union smb_open io;
union smb_close cl;
int i, count;
- struct smb2_handle h1, h2;
+ struct smb2_handle h1 = {{0}};
+ struct smb2_handle h2 = {{0}};
struct smb2_request *req, *req2;
const char *fname = BASEDIR "\\subdir-name";
extern int torture_numops;
NTSTATUS status;
union smb_notify notify;
union smb_open io;
- struct smb2_handle h1;
+ struct smb2_handle h1 = {{0}};
struct smb2_request *req = NULL;
struct smb2_tree *tree1 = NULL;
const char *fname = BASEDIR "\\subdir-name";
const char *fname = DNAME "\\stream_delete.txt";
const char *sname1;
bool ret = true;
- struct smb2_handle h, h1;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h1 = {{0}};
struct smb2_read r;
if (torture_setting_bool(tctx, "samba4", false)) {
union smb_open io;
const char *fname = DNAME "\\stream_names2.txt";
bool ret = true;
- struct smb2_handle h, h1;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h1 = {{0}};
uint8_t i;
smb2_util_unlink(tree, fname);
union smb_fileinfo finfo1;
union smb_setfileinfo sfinfo;
bool ret = true;
- struct smb2_handle h, h1;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h1 = {{0}};
sname1 = talloc_asprintf(mem_ctx, "%s:%s", fname, "Stream One");
sname2 = talloc_asprintf(mem_ctx, "%s:%s:$DaTa", fname,
const char *default_stream_name = "::$DATA";
const char *stream_list[2];
bool ret = true;
- struct smb2_handle h, h1;
+ struct smb2_handle h = {{0}};
+ struct smb2_handle h1 = {{0}};
/* clean slate .. */
smb2_util_unlink(tree, fname);
bool ret = true;
const char *dname = BASEDIR "\\testdir";
const char *fname = BASEDIR "\\testdir\\testfile";
- struct smb2_handle fhandle, dhandle;
+ struct smb2_handle fhandle = {{0}};
+ struct smb2_handle dhandle = {{0}};
union smb_fileinfo q;
union smb_setfileinfo set;
struct security_descriptor *sd = NULL;
bool ret = true;
const char *dname = BASEDIR "\\testdir";
const char *fname = BASEDIR "\\testdir\\testfile";
- struct smb2_handle fhandle, dhandle;
+ struct smb2_handle fhandle = {{0}};
+ struct smb2_handle dhandle = {{0}};
union smb_fileinfo q;
union smb_setfileinfo set;
struct security_descriptor *sd = NULL;