* src/cff/cffload.c (cff_build_blend_vector): Remove redundant code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/ChangeLog b/ChangeLog
index 7b74864..7b994d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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.
2016-12-17 Werner Lemberg <wl@gnu.org>
diff --git a/src/cff/cffload.c b/src/cff/cffload.c
index 33e8d19..f8cac42 100644
--- 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,