diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-06-03 00:24:33 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-06-03 00:24:33 +0000 |
commit | a29e38bef536c6f824d23fffe2e18c43ac01b5c4 (patch) | |
tree | cac9d05015cf8d00a0579a75635005dad2030f48 /src/ls.c | |
parent | b48ac2dfa355206d0a49169451f86c964a4c3e30 (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.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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; } |