summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-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 =