summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2020-08-03 16:39:26 +0000
committerKhaled Hosny <khaledhosny@eglug.org>2020-08-03 16:39:26 +0000
commit6a01f34760cce89356be4683c400844748ff8c10 (patch)
tree7ca5b972c2ad024061daf708ddca6b23d6031bb5
parent4620279ebb676d54c0d73dd4d97e358c3c3c49de (diff)
parent8ed55ed79ee1319b846f6d6954906a6ec6e19869 (diff)
downloadpango-6a01f34760cce89356be4683c400844748ff8c10.tar.gz
Merge branch 'issue-489' into 'master'
Initialise out arguments Closes #489 See merge request GNOME/pango!211
-rw-r--r--pango/pangofc-fontmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index b2c44300..ec504094 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -2842,6 +2842,12 @@ pango_fc_family_list_faces (PangoFontFamily *family,
{
PangoFcFamily *fcfamily = PANGO_FC_FAMILY (family);
+ if (faces)
+ *faces = NULL;
+
+ if (n_faces)
+ *n_faces = 0;
+
if (G_UNLIKELY (!fcfamily->fontmap))
return;