summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2019-07-20 10:38:21 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2019-07-20 10:38:21 +0800
commitc5dfeb2d3d01f9de4df9b600c3828b4cd017e8ef (patch)
tree0b93cdae45e6ae76bfd9d6b81bf0ebb0a942be39 /pango/pango-attributes.c
parentab1f84a57ff45ce318c4cd3706d71d9d6f7bb3bc (diff)
downloadpango-c5dfeb2d3d01f9de4df9b600c3828b4cd017e8ef.tar.gz
pango/pango-attributes.c: Trivial fix for pre-C99
Ensure that we declare variables at the top of the block.
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 17549ffd..894555d1 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1636,8 +1636,8 @@ pango_attr_list_update (PangoAttrList *list,
l = list->attributes;
while (l)
{
- next = l->next;
PangoAttribute *attr = l->data;
+ next = l->next;
if (attr->start_index >= pos &&
attr->end_index < pos + remove)