From 8e062b7bd0ca3a7146bc6ccd7e138e24ee74230d Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Fri, 18 Jul 2014 13:56:02 +0200 Subject: fix uninitialised copy on 24bit colours --- src/fe-text/textbuffer-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-text/textbuffer-view.c') diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c index 2197c1df..3099ee3e 100644 --- a/src/fe-text/textbuffer-view.c +++ b/src/fe-text/textbuffer-view.c @@ -213,7 +213,7 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) color = ATTR_RESETFG | ATTR_RESETBG; xpos = 0; indent_pos = view->default_indent; last_space = last_color = 0; last_space_ptr = NULL; sub = NULL; - last_bg24 = last_fg24 = UINT_MAX; + bg24 = fg24 = last_bg24 = last_fg24 = UINT_MAX; indent_func = view->default_indent_func; linecount = 1; -- cgit v1.2.3