summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-01 19:43:46 +0100
committerVolker Lendecke <vl@samba.org>2012-02-01 20:19:31 +0100
commit1bd7497a18f3b42a5068e6a259a7f03c880f0020 (patch)
tree7d88e8eff48e11347afab89c2d020006334915b7 /source3
parent3c6bd8c1ef0cee7d63ce870f320ad5fc83b1dc7b (diff)
downloadsamba-1bd7497a18f3b42a5068e6a259a7f03c880f0020.tar.gz
samba-1bd7497a18f3b42a5068e6a259a7f03c880f0020.tar.bz2
samba-1bd7497a18f3b42a5068e6a259a7f03c880f0020.zip
s3-vfstest: Fix some uninitialized vars
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/vfstest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index 082d3d4df7..ddc5e533a2 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -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;