* src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.

Found by clang 8.0's static analyzer and reported by Sender Ghost
<lightside@gmx.com>.
This commit is contained in:
Werner Lemberg 2019-04-23 06:52:07 +02:00
parent 4166c45360
commit 6abce2c2b0
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2019-04-23 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttcmap.c (tt_cmap12_next): Remove dead code.
Found by clang 8.0's static analyzer and reported by Sender Ghost
<lightside@gmx.com>.
2019-04-23 Werner Lemberg <wl@gnu.org>
[base] Fix thinko in previous commit.

View File

@ -2368,10 +2368,7 @@
/* if `gindex' is invalid, the remaining values */
/* in this group are invalid, too */
if ( gindex >= (FT_UInt)face->num_glyphs )
{
gindex = 0;
continue;
}
cmap->cur_charcode = char_code;
cmap->cur_gindex = gindex;