diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-18 12:19:08 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-18 12:19:08 +0200 |
commit | 1d83a30922cadb79e88f65dfe482c6cf05b828b7 (patch) | |
tree | 0b7ce8a0eccdf4f2abcce2abeea1d2961440daa4 | |
parent | 4887e066d00e33f706ae07518ed6faf2d2a62fc8 (diff) | |
download | pianobar-1d83a30922cadb79e88f65dfe482c6cf05b828b7.tar.gz pianobar-1d83a30922cadb79e88f65dfe482c6cf05b828b7.tar.bz2 pianobar-1d83a30922cadb79e88f65dfe482c6cf05b828b7.zip |
Fix segfault when selecting quickmix stations
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 = |