From f499d8fc24af248ebc4a890ad93610fd1d7b994c Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri, 10 Apr 2009 10:52:18 -0300
Subject: [PATCH 11/38] tests/performance: Use memset() to initialize the buffer

The content doesn't really matter, but to avoid cluttering up valgrind
reports we use memset() to initialize it.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 tests/performance/performance.c |    2 ++
 tests/performance/random.c      |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tests/performance/performance.c b/tests/performance/performance.c
index 47f1965..199865a 100644
--- a/tests/performance/performance.c
+++ b/tests/performance/performance.c
@@ -15,6 +15,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/time.h>
+#include <string.h>
 #include <libjio.h>
 
 #define FILENAME "test_file"
@@ -53,6 +54,7 @@ static void *worker(void *tno)
 		perror("malloc()");
 		return NULL;
 	}
+	memset(buf, 5, blocksize);
 
 	work_done = 0;
 
diff --git a/tests/performance/random.c b/tests/performance/random.c
index 4af4bed..a788ddc 100644
--- a/tests/performance/random.c
+++ b/tests/performance/random.c
@@ -15,6 +15,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <sys/time.h>
+#include <string.h>
 #include <libjio.h>
 
 #define FILENAME "test_file"
@@ -53,6 +54,7 @@ static void *worker(void *tno)
 		perror("malloc()");
 		return NULL;
 	}
+	memset(buf, 5, blocksize);
 
 	work_done = 0;
 
-- 
1.6.2.2.646.gb214

