summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-02-17 18:32:14 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-02-17 19:27:44 -0500
commit71e2d0c7899e789a4f43c58ec466aaee3f46f57e (patch)
treebb987fd8671d442dceab35e1b2badd5d0ffedf23
parent60beaf2e3aa27e50fabc5f15df331c1aa147a659 (diff)
downloadpango-71e2d0c7899e789a4f43c58ec466aaee3f46f57e.tar.gz
Fix compiler warnings
-rw-r--r--pango/pango-utils.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pango/pango-utils.c b/pango/pango-utils.c
index 7c85b0aa..a78dcd35 100644
--- a/pango/pango-utils.c
+++ b/pango/pango-utils.c
@@ -749,9 +749,9 @@ _pango_parse_enum (GType type,
s->str);
if (possible_values)
- *possible_values = s->str;
-
- g_string_free (s, possible_values ? FALSE : TRUE);
+ *possible_values = g_string_free (s, FALSE);
+ else
+ g_string_free (s, TRUE);
}
}
@@ -811,9 +811,7 @@ pango_parse_flags (GType type,
g_string_append (s, v->value_nick);
}
- *possible_values = s->str;
-
- g_string_free (s, FALSE);
+ *possible_values = g_string_free (s, FALSE);
}
}