Permalink
Browse files

Don't use empty station URLs in station delay mode.

  • Loading branch information...
1 parent 5eb4571 commit b5ce1470d5684463711adab255e440ae64df0bb3 jkramer committed Nov 21, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/service.c
View
@@ -120,6 +120,11 @@ int station(const char * stationURL) {
return 0;
}
+ /* Do nothing if the station URL is empty. */
+ else if(!strlen(stationURL)) {
+ return 0;
+ }
+
puts("\rDelayed.");
nextstation = strdup(stationURL);

0 comments on commit b5ce147

Please sign in to comment.