Mercurial > audlegacy-plugins
changeset 3025:f27d73fb0bcd
Zero out variables explicitly where required.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Fri, 10 Apr 2009 00:06:46 +0100 |
parents | 965c0df4ae84 |
children | d49fca0fc7fd |
files | src/adplug/core/ksm.cxx src/adplug/core/msc.cxx src/adplug/core/u6m.cxx |
diffstat | 3 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/adplug/core/ksm.cxx Thu Apr 09 23:58:13 2009 +0100 +++ b/src/adplug/core/ksm.cxx Fri Apr 10 00:06:46 2009 +0100 @@ -117,7 +117,7 @@ bool CksmPlayer::update () { - int quanter, chan, drumnum, freq, track, volevel, volval; + int quanter, chan = 0, drumnum = 0, freq, track, volevel, volval; unsigned int i, j, bufnum; unsigned long temp, templong;
--- a/src/adplug/core/msc.cxx Thu Apr 09 23:58:13 2009 +0100 +++ b/src/adplug/core/msc.cxx Fri Apr 10 00:06:46 2009 +0100 @@ -229,7 +229,7 @@ while (1) { u8 octet; // decoded octet - u8 len_corr; // length correction + u8 len_corr = 0; // length correction // advance to next block if necessary if (block_pos >= blk.mb_length && dec_len == 0)