From 82e1c8d0e71a68a51797292d71b2f7533be47a85 Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Fri, 3 Feb 2012 09:46:01 +0000 Subject: [PATCH] Fix for issue 253 Initializing a few arrays to avoid compiler warnings under the O3 flag. BUG=http://code.google.com/p/webrtc/issues/detail?id=253 Review URL: https://webrtc-codereview.appspot.com/380005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1595 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/audio_coding/neteq/test/RTPencode.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/audio_coding/neteq/test/RTPencode.cc b/src/modules/audio_coding/neteq/test/RTPencode.cc index 49394ed100..8d445a8403 100644 --- a/src/modules/audio_coding/neteq/test/RTPencode.cc +++ b/src/modules/audio_coding/neteq/test/RTPencode.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. + * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source @@ -249,9 +249,9 @@ int main(int argc, char* argv[]) WebRtc_UWord16 length, plen; WebRtc_UWord32 offset; double sendtime = 0; - int red_PT[2]; - WebRtc_UWord32 red_TS[2]; - WebRtc_UWord16 red_len[2]; + int red_PT[2] = {0}; + WebRtc_UWord32 red_TS[2] = {0}; + WebRtc_UWord16 red_len[2] = {0}; int RTPheaderLen=12; unsigned char red_data[8000]; #ifdef INSERT_OLD_PACKETS