shithub: freetype+ttf2subf

Download patch

ref: d9c1659610f9cd5e103790cb5963483d65cf0d2d
parent: 292144b44a15c1a72f2ef76475d65b7a3a3fba67
author: Werner Lemberg <[email protected]>
date: Thu Mar 1 10:15:00 EST 2012

[bdf] Fix Savannah bug #35658.

* src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
properly.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2012-03-01  Werner Lemberg  <[email protected]>
 
+	[bdf] Fix Savannah bug #35658.
+
+	* src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
+	properly.
+
+2012-03-01  Werner Lemberg  <[email protected]>
+
 	[psaux] Fix Savannah bug #35657.
 
 	If in function `skip_spaces' the routine `skip_comment' comes to the
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -563,6 +563,13 @@
 
     /* Initialize the list. */
     list->used = 0;
+    if ( list->size )
+    {
+      list->field[0] = (char*)empty;
+      list->field[1] = (char*)empty;
+      list->field[2] = (char*)empty;
+      list->field[3] = (char*)empty;
+    }
 
     /* If the line is empty, then simply return. */
     if ( linelen == 0 || line[0] == 0 )