Skip to content

Commit

Permalink
Don't use empty station URLs in station delay mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkramer committed Nov 21, 2009
1 parent 5eb4571 commit b5ce147
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/service.c
Expand Up @@ -120,6 +120,11 @@ int station(const char * stationURL) {
return 0; return 0;
} }


/* Do nothing if the station URL is empty. */
else if(!strlen(stationURL)) {
return 0;
}

puts("\rDelayed."); puts("\rDelayed.");
nextstation = strdup(stationURL); nextstation = strdup(stationURL);


Expand Down

0 comments on commit b5ce147

Please sign in to comment.