Commit 26c0e94f authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

[t:4333] fixing valgrind complaint

git-svn-id: file:///svn/toku/tokudb@39645 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2d6e4474
......@@ -153,7 +153,9 @@ static void *worker(void *arg_v) {
struct worker_extra* we = arg_v;
ARG arg = we->thread_arg;
struct random_data random_data;
memset(&random_data, 0, sizeof random_data);
char *random_buf = toku_xmalloc(8);
memset(random_buf, 0, 8);
r = initstate_r(random(), random_buf, 8, &random_data);
assert_zero(r);
arg->random_data = &random_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment