diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-05-09 04:54:51 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-05-09 04:54:51 +0000 |
commit | 4e2bc456d20e331cb45cdef41f67d8fd734874e1 (patch) | |
tree | c786eb1a15801017726eb20900f1571056f519c5 /pango/pangowin32-fontmap.c | |
parent | 8b1e9f9e6438ba5e018c8117e427e2c6ae30413e (diff) | |
parent | 7b3182a3b5427137557d257f7024a5078a096fc3 (diff) | |
download | pango-4e2bc456d20e331cb45cdef41f67d8fd734874e1.tar.gz |
Merge branch 'add-null-checkds' into 'master'
Add some NULL checks
Closes #268
See merge request GNOME/pango!328
Diffstat (limited to 'pango/pangowin32-fontmap.c')
-rw-r--r-- | pango/pangowin32-fontmap.c | 3 |
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; } |