From 3c37354b70e1b4058bf869af97ba3e4f69aef3d5 Mon Sep 17 00:00:00 2001 From: "fbarchard@google.com" Date: Sat, 15 Dec 2012 01:09:18 +0000 Subject: [PATCH] Initialize 3 variables which are preventing VS2012 from building. BUG=1211 TESTED=ninja -C out\Release Review URL: https://webrtc-codereview.appspot.com/992005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3301 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../isac/main/test/ReleaseTest-API/ReleaseTest-API.cc | 6 +++--- webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc b/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc index ca05c2ce2..db346026b 100644 --- a/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc +++ b/webrtc/modules/audio_coding/codecs/isac/main/test/ReleaseTest-API/ReleaseTest-API.cc @@ -44,7 +44,7 @@ int main(int argc, char* argv[]) { char inname[100], outname[100], bottleneck_file[100], vadfile[100]; - FILE *inp, *outp, *f_bn=NULL, *vadp, *bandwidthp; + FILE *inp, *outp, *f_bn = NULL, *vadp = NULL, *bandwidthp; int framecnt, endfile; int i, errtype, VADusage = 0, packetLossPercent = 0; @@ -100,8 +100,8 @@ int main(int argc, char* argv[]) WebRtc_UWord32 numTransCodingBytes = 0; /* only one structure used for ISAC encoder */ - ISACStruct* ISAC_main_inst; - ISACStruct* decoderTransCoding; + ISACStruct* ISAC_main_inst = NULL; + ISACStruct* decoderTransCoding = NULL; BottleNeckModel BN_data; diff --git a/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc b/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc index d6cd8beaa..1918ff800 100644 --- a/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc +++ b/webrtc/modules/rtp_rtcp/test/testFec/test_fec.cc @@ -68,7 +68,7 @@ int main() { ForwardErrorCorrection::RecoveredPacketList recoveredPacketList; std::list fecMaskList; - ForwardErrorCorrection::Packet* mediaPacket; + ForwardErrorCorrection::Packet* mediaPacket = NULL; // Running over only one loss rate to limit execution time. const float lossRate[] = {0.5f}; const WebRtc_UWord32 lossRateSize = sizeof(lossRate)/sizeof(*lossRate);