1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Pass NULL to settings_set_str to reset term_charset to its default

value rather than hardcoding the string.


git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4859 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Emanuele Giaquinta 2008-06-06 22:19:57 +00:00 committed by exg
parent 1aa6cbc3f9
commit 8c482d03a9

View File

@ -168,11 +168,8 @@ static void read_settings(void)
g_free(term_charset);
term_charset = g_strdup(settings_get_str("term_charset"));
if (!is_valid_charset(term_charset)) {
const char *str;
g_free(term_charset);
g_get_charset(&str);
term_charset = is_valid_charset(old_term_charset) ? g_strdup(old_term_charset) : g_strdup(str);
term_charset = is_valid_charset(old_term_charset) ? g_strdup(old_term_charset) : NULL;
settings_set_str("term_charset", term_charset);
}