From 10b3e270ec190a0c67595d6dd43fada191a9c25e Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 2 May 2003 18:22:52 +0000 Subject: Fix a harmless uninitialized memory read. (#109625, Rich Burridge) Fri May 2 14:21:20 2003 Owen Taylor * pango/pango-layout.c (update_run): Fix a harmless uninitialized memory read. (#109625, Rich Burridge) --- pango/pango-layout.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pango/pango-layout.c b/pango/pango-layout.c index a2234189..ce484f90 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -3982,16 +3982,14 @@ update_run (PangoLayoutIter *iter, line_ext = (Extents*)iter->line_extents_link->data; - /* Note that in iter_new() the old_run_width is garbage, - * but we don't use it since we're on the first run of + /* Note that in iter_new() the iter->run_logical_rect.width + * is garbage but we don't use it since we're on the first run of * a line. */ - old_run_width = iter->run_logical_rect.width; - if (iter->run_list_link == iter->line->runs) iter->run_x = line_ext->logical_rect.x; else - iter->run_x += old_run_width; + iter->run_x += iter->run_logical_rect.width; if (iter->run) { -- cgit v1.2.1