summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-12-02 03:18:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:58 -0500
commit51b1deee5def7c66841f10a231b43cfd42a60b5f (patch)
tree3b7aabf880d7b97994e611fd7d83eb95fcdc9ee3
parentfd7fd22e462ef6cf46e3f63e12ffcd684ea20244 (diff)
downloadsamba-51b1deee5def7c66841f10a231b43cfd42a60b5f.tar.gz
samba-51b1deee5def7c66841f10a231b43cfd42a60b5f.tar.bz2
samba-51b1deee5def7c66841f10a231b43cfd42a60b5f.zip
r12007: fixed a valgrind error in the SMB2-SETINFO test
(This used to be commit 0c3223ab7db93a31121667c65956f30a5b0ec9f8)
-rw-r--r--source4/torture/smb2/setinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/smb2/setinfo.c b/source4/torture/smb2/setinfo.c
index 72a75db57e..aa66d510d4 100644
--- a/source4/torture/smb2/setinfo.c
+++ b/source4/torture/smb2/setinfo.c
@@ -44,6 +44,8 @@ BOOL torture_smb2_setinfo(void)
time_t basetime = (time(NULL) - 86400) & ~1;
int n = time(NULL) % 100;
+ ZERO_STRUCT(handle);
+
fname = talloc_asprintf(mem_ctx, BASEDIR "fnum_test_%d.txt", n);
fname_new = talloc_asprintf(mem_ctx, BASEDIR "fnum_test_new_%d.txt", n);