shithub: opusfile

Download patch

ref: 8f26e5a1c1e30bb75616ebc31a1a994a508c74dc
parent: cfa5956105a71501fc6aa1a583c118ba423975aa
author: Timothy B. Terriberry <tterribe@xiph.org>
date: Mon Aug 12 05:54:41 EDT 2013

Fix an uninitialized variable.

Surprisingly, the actual initial value of this variable is
 irrelevant, since we always insert 24 bits of data into and then
 read only those bits out.
However, fixing this still removes undefined behavior and removes
 extraneous register dependencies.

--- a/src/info.c
+++ b/src/info.c
@@ -473,6 +473,7 @@
   for(i=0;i<_base64_sz;i++){
     opus_uint32 value;
     int         j;
+    value=0;
     for(j=0;j<4;j++){
       unsigned c;
       unsigned d;