1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

/format -reset crashed irssi

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@873 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-11-26 02:49:21 +00:00 committed by cras
parent f9653a5e1e
commit f9c02639f5

View File

@ -735,9 +735,9 @@ static void theme_show(THEME_SEARCH_REC *rec, const char *key, const char *value
g_free_not_null(theme->formats[n]);
g_free_not_null(theme->expanded_formats[n]);
theme->formats[n] = reset ? NULL : g_strdup(value);
theme->expanded_formats[n] = reset ? NULL : theme_format_expand(current_theme, value);
text = reset ? formats[n].def : value;
theme->formats[n] = reset ? NULL : g_strdup(value);
theme->expanded_formats[n] = theme_format_expand(current_theme, text);
}
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_FORMAT_ITEM, formats[n].tag, text);
last_title = NULL;