mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04: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:
parent
1aa6cbc3f9
commit
8c482d03a9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user