summaryrefslogtreecommitdiff
path: root/pango/pangowin32-fontmap.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-05-09 00:45:31 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-05-09 00:46:51 -0400
commit7b3182a3b5427137557d257f7024a5078a096fc3 (patch)
treef95ab36e576c64f0d600bce61d117f2e56110b0a /pango/pangowin32-fontmap.c
parentb3ebe097a3042737165ba497dc5b08f235df8167 (diff)
downloadpango-7b3182a3b5427137557d257f7024a5078a096fc3.tar.gz
Add some NULL checksadd-null-checkds
Originally suggested by Philipp Withnall in https://bugzilla.gnome.org/show_bug.cgi?id=778655 Fixes: #268
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r--pango/pangowin32-fontmap.c3
1 files changed, 2 insertions, 1 deletions
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;
}