mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3-vfstest: Fix some uninitialized vars
This commit is contained in:
parent
3c6bd8c1ef
commit
1bd7497a18
@ -419,7 +419,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
char *cmdstr = NULL;
|
||||
struct cmd_set **cmd_set;
|
||||
struct vfs_state vfs;
|
||||
struct vfs_state vfs = { 0, };
|
||||
int i;
|
||||
char *filename = NULL;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
@ -469,7 +469,7 @@ int main(int argc, char *argv[])
|
||||
/* some basic initialization stuff */
|
||||
sec_init();
|
||||
vfs.conn = talloc_zero(NULL, connection_struct);
|
||||
vfs.conn->params = talloc(vfs.conn, struct share_params);
|
||||
vfs.conn->params = talloc_zero(vfs.conn, struct share_params);
|
||||
for (i=0; i < 1024; i++)
|
||||
vfs.files[i] = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user