From f9c02639f5dd271f1870a2081e516a4cc23af90d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 26 Nov 2000 02:49:21 +0000 Subject: [PATCH] /format -reset crashed irssi git-svn-id: http://svn.irssi.org/repos/irssi/trunk@873 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/themes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index 08bb99a8..a8e7c3b0 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -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;