shithub: freetype+ttf2subf

Download patch

ref: 71dd68731057d79a2e58775cd93e09b67fb0ee24
parent: 5bfe0d0465e574c22d6d6ff789648607d15a8992
author: Werner Lemberg <[email protected]>
date: Fri Jul 27 00:44:36 EDT 2007

* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
first usage.  From Savannah patch #6115.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-27  Werner Lemberg  <[email protected]>
+
+	* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
+	first usage.  From Savannah patch #6115.
+
 2007-07-16  Werner Lemberg  <[email protected]>
 
 	* docs/CHANGES: Updated.
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -474,11 +474,13 @@
                         FT_Pos             yOffset )
   {
     FT_UShort   n;
-    FT_Vector*  vec = outline->points;
+    FT_Vector*  vec;
 
 
     if ( !outline )
       return;
+
+    vec = outline->points;
 
     for ( n = 0; n < outline->n_points; n++ )
     {