From 51b1deee5def7c66841f10a231b43cfd42a60b5f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Dec 2005 03:18:34 +0000 Subject: r12007: fixed a valgrind error in the SMB2-SETINFO test (This used to be commit 0c3223ab7db93a31121667c65956f30a5b0ec9f8) --- source4/torture/smb2/setinfo.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit