From 92c3859b879401dad8c18a08d0bfec1d18e31a1f Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Thu, 18 Feb 2016 10:06:06 +0100 Subject: [PATCH] containers_cpp: fixed uninitialized variables in test --- containers_cpp/test/hazard_pointer_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containers_cpp/test/hazard_pointer_test.cc b/containers_cpp/test/hazard_pointer_test.cc index 9047348..c005149 100644 --- a/containers_cpp/test/hazard_pointer_test.cc +++ b/containers_cpp/test/hazard_pointer_test.cc @@ -210,7 +210,7 @@ void HazardPointerTest2::DeletePointerCallback(int* to_delete) { } bool HazardPointerTest2::SetRelativeGuards() { - unsigned int thread_index; + unsigned int thread_index = 0; int result = embb_internal_thread_index(&thread_index); PT_ASSERT(EMBB_SUCCESS == result); @@ -451,7 +451,7 @@ void HazardPointerTest2::HazardPointerTest2Post() { void HazardPointerTest2::HazardPointerTest2ThreadMethod() { for (;;) { - unsigned int thread_index; + unsigned int thread_index = 0; int result = embb_internal_thread_index(&thread_index); PT_ASSERT(EMBB_SUCCESS == result); -- libgit2 0.26.0