summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-18 12:19:08 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-07-18 12:19:08 +0200
commit1d83a30922cadb79e88f65dfe482c6cf05b828b7 (patch)
tree0b7ce8a0eccdf4f2abcce2abeea1d2961440daa4 /src
parent4887e066d00e33f706ae07518ed6faf2d2a62fc8 (diff)
downloadpianobar-1d83a30922cadb79e88f65dfe482c6cf05b828b7.tar.gz
pianobar-1d83a30922cadb79e88f65dfe482c6cf05b828b7.tar.bz2
pianobar-1d83a30922cadb79e88f65dfe482c6cf05b828b7.zip
Fix segfault when selecting quickmix stations
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6c74c82..00b3ad5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -645,6 +645,10 @@ int main (int argc, char **argv) {
break;
case 'x':
+ if (curStation == NULL) {
+ BarUiMsg ("No station selected.\n");
+ break;
+ }
if (curStation->isQuickMix) {
PianoStation_t *selStation;
while ((selStation =