* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before first usage. From Savannah patch #6115.
diff --git a/ChangeLog b/ChangeLog
index 3079fed..9db3be5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-27 Werner Lemberg <wl@gnu.org>
+
+ * src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
+ first usage. From Savannah patch #6115.
+
2007-07-16 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 6926f3a..397a0a6 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -474,12 +474,14 @@
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++ )
{
vec->x += xOffset;