diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-02-15 09:41:14 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2017-02-16 10:46:44 +0000 |
commit | 4cd190eb567173c6d10419f379f2facb1a59d7eb (patch) | |
tree | 00fda330a66ac9de68c74bb2a4f96410b4f2dcfa /pango/pangofc-fontmap.c | |
parent | af53ff59328aa175920e23c5c1b1fbcca0059921 (diff) | |
download | pango-4cd190eb567173c6d10419f379f2facb1a59d7eb.tar.gz |
pango: Remove some unnecessary NULL checks
These checks are preceded by other checks or code which demonstrates
that the values are definitely always non-NULL.
In the case of pango_attr_list_insert_internal(), the final branch of
the function never needs to update list->attributes_tail, as the middle
branch handles the case of appending to the list. The final case is just
for insertions in the middle of the list.
Coverity IDs: 1391710, 1391711
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=778654
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r-- | pango/pangofc-fontmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c index b73818b2..da1738ad 100644 --- a/pango/pangofc-fontmap.c +++ b/pango/pangofc-fontmap.c @@ -2347,7 +2347,7 @@ pango_fc_face_describe (PangoFontFace *face) FcConfigSubstitute (NULL, match_pattern, FcMatchPattern); FcDefaultSubstitute (match_pattern); - if (fcface->family && fcface->family->fontmap) + if (fcface->family->fontmap) config = fcface->family->fontmap->priv->config; result_pattern = FcFontMatch (config, match_pattern, &res); |