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.
This commit is contained in:
parent
877d869904
commit
a204489885
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue