Skip to content

Commit b5ce147

Browse files
author
jkramer
committed
Don't use empty station URLs in station delay mode.
1 parent 5eb4571 commit b5ce147

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: source/service.c

+5
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@ int station(const char * stationURL) {
120120
return 0;
121121
}
122122

123+
/* Do nothing if the station URL is empty. */
124+
else if(!strlen(stationURL)) {
125+
return 0;
126+
}
127+
123128
puts("\rDelayed.");
124129
nextstation = strdup(stationURL);
125130

0 commit comments

Comments
 (0)