* src/cid/cidload.c (cid_face_open): Properly propagate `error'.

This commit is contained in:
Werner Lemberg 2016-10-08 20:26:59 +02:00
parent d61b042568
commit 6b35493115
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2016-10-08 Werner Lemberg <wl@gnu.org>
* src/cid/cidload.c (cid_face_open): Properly propagate `error'.
2016-10-08 Werner Lemberg <wl@gnu.org>
[cid] Fix parsing of subr offsets.

View File

@ -733,9 +733,11 @@
}
/* we must convert the data section from hexadecimal to binary */
if ( FT_ALLOC( face->binary_data, parser->binary_length ) ||
cid_hex_to_binary( face->binary_data, parser->binary_length,
parser->data_offset, face ) )
if ( FT_ALLOC( face->binary_data, parser->binary_length ) ||
( error = cid_hex_to_binary( face->binary_data,
parser->binary_length,
parser->data_offset,
face ) ) )
goto Exit;
FT_Stream_OpenMemory( face->cid_stream,