summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-03 00:24:33 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-03 00:24:33 +0000
commita29e38bef536c6f824d23fffe2e18c43ac01b5c4 (patch)
treecac9d05015cf8d00a0579a75635005dad2030f48 /src/ls.c
parentb48ac2dfa355206d0a49169451f86c964a4c3e30 (diff)
a slight cleanup in isValidRemoteUrl()
git-svn-id: https://svn.musicpd.org/mpd/trunk@1310 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ls.c b/src/ls.c
index 74f37629e..5f6fbd5f3 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -61,15 +61,12 @@ int printRemoteUrlHandlers(FILE * fp) {
int isValidRemoteUtf8Url(char * utf8url) {
int ret = 0;
- char * lat1 = utf8StrToLatin1Dup(utf8url);
char * temp;
- if(!lat1) return 0;
-
- switch(isRemoteUrl(lat1)) {
+ switch(isRemoteUrl(utf8url)) {
case 1:
ret = 1;
- temp = lat1;
+ temp = utf8url;
while(*temp) {
if((*temp >= 'a' && *temp <= 'z') ||
(*temp >= 'A' && *temp <= 'z') ||
@@ -102,8 +99,6 @@ int isValidRemoteUtf8Url(char * utf8url) {
break;
}
- free(lat1);
-
return ret;
}