summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-22 20:24:23 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-22 20:24:23 +0200
commit95df994be69a49a6e40a105fa349a553dd03a766 (patch)
tree5b85536537d3d0bd973390ba2150acbde6e9b649 /src
parentbfbb8e26d6b89cef9d496246f0f6a64e3f3eafb5 (diff)
downloadpianobar-95df994be69a49a6e40a105fa349a553dd03a766.tar.gz
pianobar-95df994be69a49a6e40a105fa349a553dd03a766.tar.bz2
pianobar-95df994be69a49a6e40a105fa349a553dd03a766.zip
Fix infinite loop in last commit.
Diffstat (limited to 'src')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 90c3feb..ac8d862 100644
--- a/src/main.c
+++ b/src/main.c
@@ -407,6 +407,7 @@ int main (int argc, char **argv) {
if (PianoGetPlaylist (&ph, curStation->id) !=
PIANO_RET_OK) {
BarUiMsg ("Error.\n");
+ curStation = NULL;
} else {
curSong = ph.playlist;
if (curSong == NULL) {