aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 81a57d0e9..11c69ec37 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -42,12 +42,14 @@ char * dupAndStripPlaylistSuffix(char * file) {
}
int isRemoteUrl(char * url) {
- char * urlPrefixes[] = {
+ char * prefixes[] = {
"http://",
"ftp://",
NULL
};
+ char ** urlPrefixes = prefixes;
+
while(*urlPrefixes) {
if(strncmp(*urlPrefixes,url,strlen(*urlPrefixes)) == 0) {
#ifdef HAVE_MAD
@@ -58,6 +60,7 @@ int isRemoteUrl(char * url) {
return 0;
#endif
}
+ urlPrefixes++;
}
return 0;