forked from minhngoc25a/freetype2
[bdf] Fix Savannah bug #35658.
* src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements properly.
This commit is contained in:
parent
292144b44a
commit
d9c1659610
|
@ -1,3 +1,10 @@
|
||||||
|
2012-03-01 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
[bdf] Fix Savannah bug #35658.
|
||||||
|
|
||||||
|
* src/bdf/bdflib.c (_bdf_list_split): Initialize `field' elements
|
||||||
|
properly.
|
||||||
|
|
||||||
2012-03-01 Werner Lemberg <wl@gnu.org>
|
2012-03-01 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
[psaux] Fix Savannah bug #35657.
|
[psaux] Fix Savannah bug #35657.
|
||||||
|
|
|
@ -563,6 +563,13 @@
|
||||||
|
|
||||||
/* Initialize the list. */
|
/* Initialize the list. */
|
||||||
list->used = 0;
|
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 the line is empty, then simply return. */
|
||||||
if ( linelen == 0 || line[0] == 0 )
|
if ( linelen == 0 || line[0] == 0 )
|
||||||
|
|
Loading…
Reference in New Issue