From f1d8e630ae677a8f1b1f669c695c55ffb3a5f0fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 26 Sep 2006 03:02:20 +0000 Subject: Initialise values for mad_fixed_64{hi,lo}_t variables, for safety. Fixes CID 264 263 from coverity. CVS patchset: 8287 CVS date: 2006/09/26 03:02:20 --- src/libmad/synth.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libmad/synth.c b/src/libmad/synth.c index be3eace56..c05ad3efc 100755 --- a/src/libmad/synth.c +++ b/src/libmad/synth.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: synth.c,v 1.3 2004/04/22 00:23:13 miguelfreitas Exp $ + * $Id: synth.c,v 1.4 2006/09/26 03:02:20 dgp85 Exp $ */ # ifdef HAVE_CONFIG_H @@ -563,8 +563,8 @@ void synth_full(struct mad_synth *synth, struct mad_frame const *frame, mad_fixed_t const (*sbsample)[36][32]; register mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8]; register mad_fixed_t const (*Dptr)[32], *ptr; - register mad_fixed64hi_t hi; - register mad_fixed64lo_t lo; + register mad_fixed64hi_t hi = 0; + register mad_fixed64lo_t lo = 0; for (ch = 0; ch < nch; ++ch) { sbsample = &frame->sbsample[ch]; @@ -700,8 +700,8 @@ void synth_half(struct mad_synth *synth, struct mad_frame const *frame, mad_fixed_t const (*sbsample)[36][32]; register mad_fixed_t (*fe)[8], (*fx)[8], (*fo)[8]; register mad_fixed_t const (*Dptr)[32], *ptr; - register mad_fixed64hi_t hi; - register mad_fixed64lo_t lo; + register mad_fixed64hi_t hi = 0; + register mad_fixed64lo_t lo = 0; for (ch = 0; ch < nch; ++ch) { sbsample = &frame->sbsample[ch]; -- cgit v1.2.3