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:
Doug Torrance 2014-12-18 12:30:41 -06:00 committed by Carlos R. Mafra
parent ca89668d4e
commit 149419b277

View file

@ -485,7 +485,7 @@ void checkStatus(bool forced){
drawText(art_ledpos[1][0], art_ledpos[1][1], trackstr); drawText(art_ledpos[1][0], art_ledpos[1][1], trackstr);
} }
if(mode==ssPlaying || mode==ssPaused || mode==ssStopped){ if(mode==ssPlaying || mode==ssPaused || mode==ssStopped){
int remain; int remain = 0;
if(tdisplay==0) if(tdisplay==0)
remain=cdctl->getTrackLen(cdctl->getStatusTrack())-pos; remain=cdctl->getTrackLen(cdctl->getStatusTrack())-pos;
if(tdisplay==1) if(tdisplay==1)