ref: 4cd6817951d928a857ee4618012de68e04340f20
parent: 6949797d605fa1444085462e9dce4d626c1de119
author: Werner Lemberg <[email protected]>
date: Sat Dec 17 17:52:50 EST 2016
* src/cff/cffload.c (cff_build_blend_vector): Remove redundant code.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2016-12-17 Werner Lemberg <[email protected]>
+ * src/cff/cffload.c (cff_build_blend_vector): Remove redundant code.
+
+2016-12-17 Werner Lemberg <[email protected]>
+
* src/truetype/ttobjs.c (tt_face_init): Simplify conditional code.
2016-12-17 Werner Lemberg <[email protected]>
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -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,