# HG changeset patch # User alexc # Date 1257990278 0 # Node ID af172182963b50879bdbfccdfa22f92448521b98 # Parent 9b56cd1e37b7e26045da4793cefc6fc4db49c52e Fix a __warn_memset_zero_len gcc-4.4 warning. diff -r 9b56cd1e37b7 -r af172182963b alsdec.c --- a/alsdec.c Wed Nov 11 22:36:17 2009 +0000 +++ b/alsdec.c Thu Nov 12 01:44:38 2009 +0000 @@ -670,6 +670,7 @@ while (b < b_max) count += div_blocks[b]; + if (count) memset(buf, 0, sizeof(*buf) * count); }