From e517886dedb4013951325a6b8670c39c2c69c837 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Aug 2017 14:59:26 +0100 Subject: [PATCH] Remove unnecessary check Argument advance is never set to NULL coming into this function. --- src/fcfreetype.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index f0a2368..026948f 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -2219,11 +2219,8 @@ FcFreeTypeCheckGlyph (FT_Face face, if (face->face_flags & FT_FACE_FLAG_SCALABLE) load_flags |= FT_LOAD_NO_BITMAP; - if (advance) - { - *advance = 0; - FT_Get_Advance (face, glyph, load_flags, advance); - } + *advance = 0; + FT_Get_Advance (face, glyph, load_flags, advance); /* CID fonts built by Adobe used to make ASCII control chars to cid1 * (space glyph). As such, always check contour for those characters. */