From 48e7b35a9357ba6b306528c1af56d55f05de0065 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 20 Jan 2012 04:51:08 +0000 Subject: [PATCH] initialize counters in client_test.cpp --- examples/client_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index c101cc693..d5ecb4cc7 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1182,6 +1182,7 @@ int main(int argc, char* argv[]) std::set non_files; int counters[torrents_max]; + memset(counters, 0, sizeof(counters)); session ses(fingerprint("LT", LIBTORRENT_VERSION_MAJOR, LIBTORRENT_VERSION_MINOR, 0, 0) , session::add_default_plugins