r21519: when we want to send non initialized data, then
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Feb 2007 13:15:56 +0000 (13:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:48:49 +0000 (14:48 -0500)
generate a random buffer explicit to make valgrind happy

found by valgrind in the build-farm on fort, there are some more places
like this...

metze

source/torture/basic/misc.c

index 13dcf5da932a298fe49896035406783b4284f540..9467d2fc3cf2ba90a427cfc228698ce1c3a019b1 100644 (file)
@@ -66,6 +66,7 @@ static BOOL rw_torture(struct torture_context *tctx, struct smbcli_state *c)
                return False;
        }
 
+       generate_random_buffer(buf, sizeof(buf));
 
        for (i=0;i<torture_numops;i++) {
                uint_t n = (uint_t)random()%10;