diff options
author | Mathias Stearn <mathias@10gen.com> | 2011-02-28 13:43:43 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2011-02-28 13:43:43 -0500 |
commit | 665d7e5d2409fbec0812dc98bf1b2e7e24acd393 (patch) | |
tree | 2122375d6897585e8504fe5e86432bf70ab4f106 /dbtests | |
parent | cf07d57e5fa4ee15e5ffa4aaebb27b26764f41c8 (diff) | |
download | mongo-665d7e5d2409fbec0812dc98bf1b2e7e24acd393.tar.gz |
Uninitialized warnings
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/perftests.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dbtests/perftests.cpp b/dbtests/perftests.cpp index ac9d9bd73b8..dd00d24b11b 100644 --- a/dbtests/perftests.cpp +++ b/dbtests/perftests.cpp @@ -76,7 +76,10 @@ namespace PerfTests { unsigned sz = 1024 * 1024 * 100 + 3; void *p = malloc(sz); - mongo::Checksum last; + for (unsigned i = 0; i<sz; i++) + ((char*)p)[i] = rand(); + + mongo::Checksum last = {}; for( int i = 0; i < 4; i++ ) { Timer t; mongo::Checksum c; |