playlist: don't use uninitialized local variable (typo)

Instead of the uninitialized local variable "s", I should have used
"uri".
This commit is contained in:
Max Kellermann 2008-10-14 17:23:24 +02:00
parent df5f16b54e
commit da1c0cd6d7

View File

@ -46,7 +46,7 @@ playlist_print_uri(FILE *file, const char *uri)
char tmp[MPD_PATH_MAX];
const char *s;
if (playlist_saveAbsolutePaths && !isValidRemoteUtf8Url(s))
if (playlist_saveAbsolutePaths && !isValidRemoteUtf8Url(uri))
s = map_directory_child_fs(db_get_root(), uri, tmp);
else
s = utf8_to_fs_charset(tmp, uri);