[type42] Minor code optimization (again). * src/type42/t42parse.c (t42_parse_sfnts): Simplify previous change.
diff --git a/ChangeLog b/ChangeLog
index 207e120..c50ce95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c
index 1888c3c..468b463 100644
--- a/src/type42/t42parse.c
+++ b/src/type42/t42parse.c
@@ -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 )