changeset 405:e23a39947f4c trunk

[svn] Initialize variables to zero where required.
author chainsaw
date Sun, 08 Jan 2006 13:39:07 -0800
parents 6cb49eeecbbb
children 5928c035fa4e
files Plugins/Input/aac/libfaad2/ps_dec.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/aac/libfaad2/ps_dec.c	Sun Jan 08 13:32:21 2006 -0800
+++ b/Plugins/Input/aac/libfaad2/ps_dec.c	Sun Jan 08 13:39:07 2006 -0800
@@ -1438,6 +1438,20 @@
     const real_t *sf_iid;
     uint8_t no_iid_steps;
 
+    /* These could otherwise be used uninitialized, according to GCC 4.0.2 */
+    H22[1] = 0;
+    H21[1] = 0;
+    H12[1] = 0;
+    H11[1] = 0;
+    deltaH22[1] = 0;
+    deltaH21[1] = 0;
+    deltaH12[1] = 0;
+    deltaH11[1] = 0;
+    h22[1] = 0;
+    h21[1] = 0;
+    h12[1] = 0;
+    h11[1] = 0;
+
     if (ps->iid_mode >= 3)
     {
         no_iid_steps = 15;