From cc404390f2cd0194becc1d1c8b475a619a1732d2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 6 Jan 2022 23:00:25 -0500 Subject: Avoid an uninitialized variable warning Fixes: #650 --- pango/pango-layout.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pango/pango-layout.c') diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 973d2a7b..9167883c 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -4091,6 +4091,8 @@ process_item (PangoLayout *layout, return BREAK_ALL_FIT; } + wrap = layout->wrap; + if (!no_break_at_end && can_break_at (layout, state->start_offset + item->num_chars, wrap)) { @@ -4774,7 +4776,8 @@ pango_layout_check_lines (PangoLayout *layout) PangoAttrList *itemize_attrs; PangoAttrList *shape_attrs; PangoAttrIterator iter; - PangoDirection prev_base_dir = PANGO_DIRECTION_NEUTRAL, base_dir = PANGO_DIRECTION_NEUTRAL; + PangoDirection prev_base_dir = PANGO_DIRECTION_NEUTRAL; + PangoDirection base_dir = PANGO_DIRECTION_NEUTRAL; ParaBreakState state; gboolean need_log_attrs; -- cgit v1.2.1