diff options
-rw-r--r-- | base/threading/thread_local_storage_posix.cc | 5 | ||||
-rw-r--r-- | base/threading/thread_local_storage_win.cc | 5 |
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); } |