diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 03:02:20 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-09-26 03:02:20 +0000 |
commit | f1d8e630ae677a8f1b1f669c695c55ffb3a5f0fe (patch) | |
tree | a03d1f41a5d0d040a873ee975a43b04bd26ddc8e | |
parent | 4a4a496f6baeb0f6d551409ef6d68e02e6e8cf4e (diff) | |
download | xine-lib-f1d8e630ae677a8f1b1f669c695c55ffb3a5f0fe.tar.gz xine-lib-f1d8e630ae677a8f1b1f669c695c55ffb3a5f0fe.tar.bz2 |
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
-rwxr-xr-x | src/libmad/synth.c | 10 |
1 files 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]; |