oops, fix an infinate loop
git-svn-id: https://svn.musicpd.org/mpd/trunk@1004 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
965e6edcf1
commit
daa4ceb65a
5
src/ls.c
5
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;
|
||||
|
|
Loading…
Reference in New Issue