summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 17:04:38 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-27 17:04:38 +0000
commit651dd5c35862b034a6ccf9dbcae7711735b88565 (patch)
tree9c9916ab0b704fd8c3481980e874b3d282bb4263 /content
parent9f5896a00af05e445ee9775a638cb0002269cb3d (diff)
downloadchromium_src-651dd5c35862b034a6ccf9dbcae7711735b88565.zip
chromium_src-651dd5c35862b034a6ccf9dbcae7711735b88565.tar.gz
chromium_src-651dd5c35862b034a6ccf9dbcae7711735b88565.tar.bz2
Coverity: Fix uninitialized member variables.
CID_COUNT=12 CID=100727, 100582, 100851, 100854, 100904, 101224, 101533, 101534, 101535, 101615, 101631, 101647 BUG=none TEST=none Review URL: http://codereview.chromium.org/7983053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102953 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/p2p/port_allocator.cc10
-rw-r--r--content/renderer/p2p/port_allocator.h2
2 files changed, 8 insertions, 4 deletions
diff --git a/content/renderer/p2p/port_allocator.cc b/content/renderer/p2p/port_allocator.cc
index e0fac7a..655ab45 100644
--- a/content/renderer/p2p/port_allocator.cc
+++ b/content/renderer/p2p/port_allocator.cc
@@ -80,7 +80,11 @@ P2PPortAllocatorSession::P2PPortAllocatorSession(
const std::string& name,
const std::string& session_type)
: cricket::BasicPortAllocatorSession(allocator, name, session_type),
- allocator_(allocator) {
+ allocator_(allocator),
+ relay_session_attempts_(0),
+ relay_udp_port_(0),
+ relay_tcp_port_(0),
+ relay_ssltcp_port_(0) {
}
P2PPortAllocatorSession::~P2PPortAllocatorSession() {
@@ -165,9 +169,9 @@ void P2PPortAllocatorSession::AllocateRelaySession() {
return;
}
- if (relay_session_attemtps_ > kRelaySessionRetries)
+ if (relay_session_attempts_ > kRelaySessionRetries)
return;
- relay_session_attemtps_++;
+ relay_session_attempts_++;
relay_session_response_.clear();
diff --git a/content/renderer/p2p/port_allocator.h b/content/renderer/p2p/port_allocator.h
index fe5511a..e25fbd5 100644
--- a/content/renderer/p2p/port_allocator.h
+++ b/content/renderer/p2p/port_allocator.h
@@ -85,7 +85,7 @@ class P2PPortAllocatorSession : public cricket::BasicPortAllocatorSession,
talk_base::SocketAddress stun_server_address_;
scoped_ptr<WebKit::WebURLLoader> relay_session_request_;
- int relay_session_attemtps_;
+ int relay_session_attempts_;
std::string relay_session_response_;
std::string relay_username_;
std::string relay_password_;