summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 16:02:27 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 16:02:27 +0000
commit4e7f6ad8b71811c540b1e085b47f259ffc2249be (patch)
treefb9e4330c78d9aec5a54d46247ff4546c33928b0 /base/threading
parent5c757f552c566d290be8b4940e8bb718953af944 (diff)
downloadchromium_src-4e7f6ad8b71811c540b1e085b47f259ffc2249be.zip
chromium_src-4e7f6ad8b71811c540b1e085b47f259ffc2249be.tar.gz
chromium_src-4e7f6ad8b71811c540b1e085b47f259ffc2249be.tar.bz2
Initialize members of ThreadLocalStorage::Slot.
BUG=None TEST=None CID=14347 Review URL: http://codereview.chromium.org/6476028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74593 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/thread_local_storage_posix.cc5
-rw-r--r--base/threading/thread_local_storage_win.cc5
2 files changed, 6 insertions, 4 deletions
diff --git a/base/threading/thread_local_storage_posix.cc b/base/threading/thread_local_storage_posix.cc
index 81b7332..3d0e187 100644
--- a/base/threading/thread_local_storage_posix.cc
+++ b/base/threading/thread_local_storage_posix.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,7 +9,8 @@
namespace base {
ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor)
- : initialized_(false) {
+ : initialized_(false),
+ key_(0) {
Initialize(destructor);
}
diff --git a/base/threading/thread_local_storage_win.cc b/base/threading/thread_local_storage_win.cc
index 2967a27..667d1b9 100644
--- a/base/threading/thread_local_storage_win.cc
+++ b/base/threading/thread_local_storage_win.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -57,7 +57,8 @@ void** ThreadLocalStorage::Initialize() {
}
ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor)
- : initialized_(false) {
+ : initialized_(false),
+ slot_(0) {
Initialize(destructor);
}