summaryrefslogtreecommitdiff
path: root/src/smooth
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2017-11-06 21:34:56 -0500
committerAlexei Podtelezhnikov <apodtele@gmail.com>2017-11-06 21:34:56 -0500
commitab6fe0768fd2a319d73adfd6cc1c8338bf2e669c (patch)
tree7ba8c12b8ae528a0e64cad0a7a693ab077ed0b10 /src/smooth
parentcdab9cfae9f336bddf709bad6f4f1de66f67524e (diff)
downloadfreetype2-ab6fe0768fd2a319d73adfd6cc1c8338bf2e669c.tar.gz
* src/smooth/ftgrays.c (gray_set_cell): Fix uninitialized variables.
Diffstat (limited to 'src/smooth')
-rw-r--r--src/smooth/ftgrays.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 91ca6e339..3b3dcb31e 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -582,8 +582,8 @@ typedef ptrdiff_t FT_PtrDist;
if ( ex < ras.min_ex )
ex = ras.min_ex - 1;
- /* record the current one if it is substantial and valid */
- if ( ( ras.area || ras.cover ) && !ras.invalid )
+ /* record the current one if it is valid and substantial */
+ if ( !ras.invalid && ( ras.area || ras.cover ) )
gray_record_cell( RAS_VAR );
ras.area = 0;