From 7b3182a3b5427137557d257f7024a5078a096fc3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 9 May 2021 00:45:31 -0400 Subject: Add some NULL checks Originally suggested by Philipp Withnall in https://bugzilla.gnome.org/show_bug.cgi?id=778655 Fixes: #268 --- pango/pangowin32-fontmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pango/pangowin32-fontmap.c') diff --git a/pango/pangowin32-fontmap.c b/pango/pangowin32-fontmap.c index e5e81bba..18d4544e 100644 --- a/pango/pangowin32-fontmap.c +++ b/pango/pangowin32-fontmap.c @@ -1794,7 +1794,8 @@ pango_win32_face_list_sizes (PangoFontFace *face, * for scalable fonts it's simple, and currently we only have such * see : pango_win32_enum_proc(), TRUETYPE_FONTTYPE */ - *sizes = NULL; + if (sizes) + *sizes = NULL; *n_sizes = 0; } -- cgit v1.2.1