diff options
author | Ben Wagner <bungeman@chromium.org> | 2021-10-28 16:17:48 -0400 |
---|---|---|
committer | Ben Wagner <bungeman@chromium.org> | 2021-10-28 16:17:48 -0400 |
commit | a2044898854a1ab515e64d0a5aac78945adf8bb2 (patch) | |
tree | 1f5f1c65a1e5d92213d84711c4f4a6f6aed04802 /src | |
parent | 877d8699047f91975f71fce4498a7ed6cc1dc439 (diff) | |
download | fontconfig-a2044898854a1ab515e64d0a5aac78945adf8bb2.tar.gz |
Fix warning about os2->achVendID cannot be NULL
FreeType's TT_OS2::achVendID is a FT_Char[4] array and not a pointer,
so it does not need to be checked for NULL.
Diffstat (limited to 'src')
-rw-r--r-- | src/fcfreetype.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcfreetype.c b/src/fcfreetype.c index ee86eb9..0a5743f 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -1370,7 +1370,7 @@ FcFreeTypeQueryFaceInternal (const FT_Face face, if (os2 && os2->version >= 0x0001 && os2->version != 0xffff) { - if (os2->achVendID && os2->achVendID[0] != 0) + if (os2->achVendID[0] != 0) { foundry_ = (FcChar8 *) malloc (sizeof (os2->achVendID) + 1); memcpy ((void *)foundry_, os2->achVendID, sizeof (os2->achVendID)); |