diff options
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |