[pango/matthiasc/for-main: 4/4] Avoid an uninitialized variable warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/matthiasc/for-main: 4/4] Avoid an uninitialized variable warning
- Date: Fri, 7 Jan 2022 04:02:51 +0000 (UTC)
commit cc404390f2cd0194becc1d1c8b475a619a1732d2
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 6 23:00:25 2022 -0500
Avoid an uninitialized variable warning
Fixes: #650
pango/pango-layout.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]