changeset 10523:af172182963b libavcodec

Fix a __warn_memset_zero_len gcc-4.4 warning.
author alexc
date Thu, 12 Nov 2009 01:44:38 +0000
parents 9b56cd1e37b7
children e5d7b184a5b0
files alsdec.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }