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:
parent
f9203c6899
commit
7640ffabd7
@ -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<> {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user