From: Jeremy Allison Date: Sun, 25 Mar 2007 02:17:05 +0000 (+0000) Subject: r21963: Fix another uninitialized buffer used in test write - valgrind X-Git-Tag: release-4-0-0alpha6~801^2~6281 X-Git-Url: http://git.samba.org/?p=amitay%2Fsamba.git;a=commitdiff_plain;h=679aeec5464ac48919f4ac17ae48e1ad6e550d5f r21963: Fix another uninitialized buffer used in test write - valgrind fix. Jeremy. (This used to be commit 0119d2c18348a9e0fcc79e247a9014d929af0ce7) --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 054f1965c40..925cac3f32c 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -1051,6 +1051,8 @@ static BOOL run_tcon_test(int dummy) char buf[4]; BOOL ret = True; + memset(buf, '\0', sizeof(buf)); + if (!torture_open_connection(&cli, 0)) { return False; }