[type42] Minor code optimization (again).

* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
This commit is contained in:
Alexei Podtelezhnikov 2012-02-28 07:52:04 +01:00 committed by Werner Lemberg
parent fcbc82e69e
commit c18c1882c2
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2012-02-26 Alexei Podtelezhnikov <apodtele@gmail.com>
[type42] Minor code optimization (again).
* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
2012-02-26 Mateusz Jurczyk <mjurczyk@google.com>
Werner Lemberg <wl@gnu.org>

View File

@ -607,9 +607,9 @@
goto Fail;
}
/* A string can have a trailing zero byte for padding. Ignore it. */
if ( string_size &&
string_buf[string_size - 1] == 0 && ( string_size & 1 ) )
/* A string can have a trailing zero (odd) byte for padding. */
/* Ignore it. */
if ( ( string_size & 1 ) && string_buf[string_size - 1] == 0 )
string_size--;
if ( !string_size )