summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2023-02-20 15:58:04 +0000
committerAlexei Podtelezhnikov <apodtele@gmail.com>2023-02-20 15:58:04 +0000
commit713580f41dcc2054d7fa56265f03eeb9c67e0937 (patch)
treeaa2ad7d037f7274f30e7b57937e5877e9dd3b2eb
parentbbfcd79eacb4985d4b68783565f4b494aa64516b (diff)
downloadfreetype2-713580f41dcc2054d7fa56265f03eeb9c67e0937.tar.gz
* src/base/ftoutln.c (FT_Outline_Check): Update error code, clean up.
-rw-r--r--src/base/ftoutln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index e7ae82e21..c1f8ed7e4 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -368,7 +368,7 @@
if ( n_points <= 0 || n_contours <= 0 )
goto Bad;
- end0 = end = -1;
+ end0 = -1;
for ( n = 0; n < n_contours; n++ )
{
end = outline->contours[n];
@@ -388,7 +388,7 @@
}
Bad:
- return FT_THROW( Invalid_Argument );
+ return FT_THROW( Invalid_Outline );
}