Initialize type_preference_ in TestPort.

Prevents use of undefined memory for logging during
PortTest.TestLoopbackCal which was recently enabled for all release
builds.

BUG=
R=asapersson@webrtc.org
TBR=pthatcher@webrtc.org

Review URL: https://codereview.webrtc.org/1480233003

Cr-Commit-Position: refs/heads/master@{#10842}
This commit is contained in:
pbos 2015-11-30 09:16:59 -08:00 committed by Commit bot
parent f9203c6899
commit 7640ffabd7

View File

@ -202,7 +202,7 @@ class TestPort : public Port {
private:
rtc::scoped_ptr<ByteBuffer> last_stun_buf_;
rtc::scoped_ptr<IceMessage> last_stun_msg_;
int type_preference_;
int type_preference_ = 0;
};
class TestChannel : public sigslot::has_slots<> {