Initialise the dataptr member correctly.
authorBradley Bell <btb@icculus.org>
Tue, 7 Dec 2004 22:26:01 +0000 (22:26 +0000)
committerBradley Bell <btb@icculus.org>
Tue, 7 Dec 2004 22:26:01 +0000 (22:26 +0000)
2d/font.c
ChangeLog

index 22a0e0e..9c39c20 100644 (file)
--- a/2d/font.c
+++ b/2d/font.c
@@ -1,4 +1,4 @@
-/* $Id: font.c,v 1.33 2004-11-25 11:51:15 btb Exp $ */
+/* $Id: font.c,v 1.34 2004-12-07 22:26:01 btb Exp $ */
 /*
 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
@@ -1614,8 +1614,10 @@ grs_font * gr_init_font( char * fontname )
        if (first_time) {
                int i;
                for (i=0;i<MAX_OPEN_FONTS;i++)
+               {
                        open_font[i].ptr = NULL;
                        open_font[i].dataptr = NULL;
+               }
                first_time=0;
        }
 
index 497bd53..640ac0f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-07  Chris Taylor  <c.taylor@student.curtin.edu.au>
+
+       * 2d/font.c: Initialise the dataptr member correctly.
+
 2004-12-05  Chris Taylor  <c.taylor@student.curtin.edu.au>
 
        * include/physfsx.h: getRealPath uses the write directory if it