shithub: freetype+ttf2subf

Download patch

ref: 10385e379e6a0a31537cee16032e6f48aa98410d
parent: 89208861effa8272f246aec360253b262047f982
author: suzuki toshiya <[email protected]>
date: Sat Apr 30 13:49:45 EDT 2011

Remove unrequired `else' from ttobjs.c::tt_get_sfnt_checksum().

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -216,13 +216,13 @@
     if ( face->dir_tables[i].CheckSum )
       return face->dir_tables[i].CheckSum;
 
-    else if ( !face->goto_table )
+    if ( !face->goto_table )
       return 0;
 
-    else if ( face->goto_table( face,
-                                face->dir_tables[i].Tag,
-                                face->root.stream,
-                                NULL ) )
+    if ( face->goto_table( face,
+                           face->dir_tables[i].Tag,
+                           face->root.stream,
+                           NULL ) )
       return 0;
 
     return (FT_ULong)tt_synth_sfnt_checksum( face->root.stream,