summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2011-07-29 10:41:40 +0200
committerLars-Dominik Braun <lars@6xq.net>2011-07-29 10:41:40 +0200
commitd8422fed9b115ad0ac28c047c9b73728d39940a4 (patch)
tree07007287a9006f395cbf925e482e7394a6234f2f
parent948a79bc8395c9f471ff60bea149bb59a7f117f2 (diff)
downloadpianobar-windows-d8422fed9b115ad0ac28c047c9b73728d39940a4.tar.gz
pianobar-windows-d8422fed9b115ad0ac28c047c9b73728d39940a4.tar.bz2
pianobar-windows-d8422fed9b115ad0ac28c047c9b73728d39940a4.zip
Fix quickmix station filtering
Regression introduced by 0728b6a89de607e211bbc075b34f08495ac0d22f
-rw-r--r--src/ui_act.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui_act.c b/src/ui_act.c
index 08cd6e2..6bdecf4 100644
--- a/src/ui_act.c
+++ b/src/ui_act.c
@@ -428,6 +428,11 @@ BarUiActCallback(BarUiActPrintUpcoming) {
static void BarUiActQuickmixCallback (BarApp_t *app, char *buf) {
PianoStation_t *curStation = app->ph.stations;
+ /* do nothing if buf is empty/contains more than one character */
+ if (buf[0] == '\0' || buf[1] != '\0') {
+ return;
+ }
+
switch (*buf) {
case 't':
/* toggle */