~ted/cairo/trunk

Viewing all changes in revision 10504.

  • Committer: Bryce Harrington
  • Date: 2018-06-16 05:15:19 UTC
  • Revision ID: git-v1:61122127943dcaff41501e1b06df2a852c576e9b
scaled-font: Fix glyph and cluster count checks (CID #983386)

num_glyphs and num_clusters are explicitly checked to be non-NULL at the
beginning of this routine, and by this point in the code both have been
deref'd multiple times, so checking them for NULL here again is
superfluous.

It looks like the intent here is to verify the glyphs and clusters
arrays are non-NULL unless their counts are zero, so change the tests
accordingly.

Coverity ID: #983386

Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: