[Pkg-wmaker-commits] [wmcdplay] 42/79: wmcdplay: Set remain variable to zero.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 11:04:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmcdplay.
commit d96d315ae62acee3cdb217fcaa6085c0b116aef5
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Thu Dec 18 12:30:41 2014 -0600
wmcdplay: Set remain variable to zero.
This avoids an possible undeclared variable error five lines later if remain is
never set: "if(remain<2250)".
Patch from Debian [1].
[1] http://sources.debian.net/src/wmcdplay/1.0beta1-13/debian/patches/set_remain_to_zero.patch/
---
wmcdplay.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wmcdplay.cc b/wmcdplay.cc
index 6e0c21d..1d776f3 100644
--- a/wmcdplay.cc
+++ b/wmcdplay.cc
@@ -485,7 +485,7 @@ void checkStatus(bool forced){
drawText(art_ledpos[1][0], art_ledpos[1][1], trackstr);
}
if(mode==ssPlaying || mode==ssPaused || mode==ssStopped){
- int remain;
+ int remain = 0;
if(tdisplay==0)
remain=cdctl->getTrackLen(cdctl->getStatusTrack())-pos;
if(tdisplay==1)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcdplay.git
More information about the Pkg-wmaker-commits
mailing list