git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c6bd8c
)
s3-vfstest: Fix some uninitialized vars
author
Volker Lendecke
<vl@samba.org>
Wed, 1 Feb 2012 18:43:46 +0000
(19:43 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 1 Feb 2012 19:19:31 +0000
(20:19 +0100)
source3/torture/vfstest.c
patch
|
blob
|
history
diff --git
a/source3/torture/vfstest.c
b/source3/torture/vfstest.c
index 082d3d4df71629865b54444e90084d0eb2dec954..ddc5e533a26cb191e2c9fea8c037f88f0515558b 100644
(file)
--- 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;