summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-26 02:49:21 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-26 02:49:21 +0000
commitf9c02639f5dd271f1870a2081e516a4cc23af90d (patch)
tree36a135c715ae7b2678d72aa0b9bd704928fd36e8 /src
parentf9653a5e1eddf73adce1a7cc33167c843dab8b8f (diff)
downloadirssi-f9c02639f5dd271f1870a2081e516a4cc23af90d.zip
/format -reset crashed irssi
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@873 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/themes.c4
1 files 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;