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/
This commit is contained in:
parent
ca89668d4e
commit
149419b277
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue