* src/cff/cffload.c (cff_build_blend_vector): Remove redundant code.

This commit is contained in:
Werner Lemberg 2016-12-17 22:52:50 +01:00
parent 6949797d60
commit 4cd6817951
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2016-12-17 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_build_blend_vector): Remove redundant code.
2016-12-17 Werner Lemberg <wl@gnu.org>
* src/truetype/ttobjs.c (tt_face_init): Simplify conditional code.

View File

@ -751,6 +751,7 @@
{
FT_Byte fd = 0;
/* if there is no FDSelect, return zero */
/* Note: CFF2 with just one Font Dict has no FDSelect */
if ( fdselect->data == NULL )
@ -1505,10 +1506,7 @@
if ( FT_REALLOC( blend->lastNDV,
blend->lenNDV * sizeof ( *NDV ),
lenNDV * sizeof ( *NDV ) ) )
{
error = FT_THROW( Out_Of_Memory );
goto Exit;
}
blend->lenNDV = lenNDV;
FT_MEM_COPY( blend->lastNDV,