[ioquake3] 34/50: Fix more maybe-uninitialized warnings in opusfile

Simon McVittie smcv at debian.org
Sun Jul 23 21:55:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository ioquake3.

commit e78da55a753d55b6e0f5e6de88d7f8f055031a8f
Author: Zack Middleton <zack at cloemail.com>
Date:   Sun Jul 9 12:58:52 2017 -0500

    Fix more maybe-uninitialized warnings in opusfile
---
 code/opusfile-0.8/src/opusfile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/code/opusfile-0.8/src/opusfile.c b/code/opusfile-0.8/src/opusfile.c
index 7c3691b..53bf4dd 100644
--- a/code/opusfile-0.8/src/opusfile.c
+++ b/code/opusfile-0.8/src/opusfile.c
@@ -2193,7 +2193,7 @@ static int op_pcm_seek_page(OggOpusFile *_of,
   ogg_int64_t        pcm_start;
   ogg_int64_t        pcm_end;
   ogg_int64_t        best_gp;
-  ogg_int64_t        diff;
+  ogg_int64_t        diff=0;
   ogg_uint32_t       serialno;
   opus_int32         pre_skip;
   opus_int64         begin;
@@ -2331,7 +2331,7 @@ static int op_pcm_seek_page(OggOpusFile *_of,
       d2=end-begin>>1;
       if(force_bisect)bisect=begin+(end-begin>>1);
       else{
-        ogg_int64_t diff2;
+        ogg_int64_t diff2=0;
         OP_ALWAYS_TRUE(!op_granpos_diff(&diff,_target_gp,pcm_start));
         OP_ALWAYS_TRUE(!op_granpos_diff(&diff2,pcm_end,pcm_start));
         /*Take a (pretty decent) guess.*/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git



More information about the Pkg-games-commits mailing list