Mercurial > mplayer.hg
changeset 22006:b79ca70e0cad
Handle mp_msg_charset == NULL correctly in filename_recode.
Patch by Vladimir Voroshilov - voroshil gmail com
author | reimar |
---|---|
date | Sat, 27 Jan 2007 10:11:40 +0000 |
parents | 77c4ad229db6 |
children | 34daa39d77b9 |
files | mp_msg.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mp_msg.c Sat Jan 27 10:10:05 2007 +0000 +++ b/mp_msg.c Sat Jan 27 10:11:40 2007 +0000 @@ -48,7 +48,8 @@ static char recoded_filename[MSGSIZE_MAX]; size_t filename_len, max_path; char* precoded; - if (!strcasecmp(mp_msg_charset, MSG_CHARSET) || + if (!mp_msg_charset || + !strcasecmp(mp_msg_charset, MSG_CHARSET) || !strcasecmp(mp_msg_charset, "noconv")) return filename; if (inv_msgiconv == (iconv_t)(-1)) {