[type42] Minor code optimization (again).
* src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
This commit is contained in:
parent
fcbc82e69e
commit
c18c1882c2
|
@ -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>
|
2012-02-26 Mateusz Jurczyk <mjurczyk@google.com>
|
||||||
Werner Lemberg <wl@gnu.org>
|
Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -607,9 +607,9 @@
|
||||||
goto Fail;
|
goto Fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A string can have a trailing zero byte for padding. Ignore it. */
|
/* A string can have a trailing zero (odd) byte for padding. */
|
||||||
if ( string_size &&
|
/* Ignore it. */
|
||||||
string_buf[string_size - 1] == 0 && ( string_size & 1 ) )
|
if ( ( string_size & 1 ) && string_buf[string_size - 1] == 0 )
|
||||||
string_size--;
|
string_size--;
|
||||||
|
|
||||||
if ( !string_size )
|
if ( !string_size )
|
||||||
|
|
Loading…
Reference in New Issue