aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-14 21:35:20 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-14 21:35:20 +0000
commitdaa4ceb65a72edb66382681f41bbf9b335488566 (patch)
treee7f7e6249177b6e5cfd41baa6574107363a57e5d
parent965e6edcf18948ea6971040495e2121a326aa11b (diff)
downloadmpd-daa4ceb65a72edb66382681f41bbf9b335488566.tar.gz
mpd-daa4ceb65a72edb66382681f41bbf9b335488566.tar.xz
mpd-daa4ceb65a72edb66382681f41bbf9b335488566.zip
oops, fix an infinate loop
git-svn-id: https://svn.musicpd.org/mpd/trunk@1004 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-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;