Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(482)

Unified Diff: base/sync_socket_posix.cc

Issue 8965049: Fixed CID 102675, uninitialized member vars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More audio device uninit fixes Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sync_socket.h ('k') | base/sync_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sync_socket_posix.cc
diff --git a/base/sync_socket_posix.cc b/base/sync_socket_posix.cc
index f50d20b9f9918e3244b5bca826f36a39170f9f96..c486cb5464e14cfe46f26ea78d9fd193c8f28b67 100644
--- a/base/sync_socket_posix.cc
+++ b/base/sync_socket_posix.cc
@@ -26,10 +26,10 @@ namespace {
// we clamp message lengths, which are size_t, to no more than INT_MAX.
const size_t kMaxMessageLength = static_cast<size_t>(INT_MAX);
-static const SyncSocket::Handle kInvalidHandle = -1;
-
} // namespace
+const SyncSocket::Handle SyncSocket::kInvalidHandle = -1;
+
bool SyncSocket::CreatePair(SyncSocket* pair[2]) {
Handle handles[2] = { kInvalidHandle, kInvalidHandle };
SyncSocket* tmp_sockets[2] = { NULL, NULL };
« no previous file with comments | « base/sync_socket.h ('k') | base/sync_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698