changeset 1357:aa6f00037df1

crash fixed if no [fontpath] in .desc
author arpi
date Fri, 20 Jul 2001 01:51:01 +0000
parents e9242766474a
children d8bfe68ea2d8
files libvo/font_load.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/font_load.c	Fri Jul 20 00:31:51 2001 +0000
+++ b/libvo/font_load.c	Fri Jul 20 01:51:01 2001 +0000
@@ -51,6 +51,8 @@
 desc=malloc(sizeof(font_desc_t));if(!desc) return NULL;
 memset(desc,0,sizeof(font_desc_t));
 
+desc->fpath="";
+
 f=fopen(fname,"rt");if(!f){ printf("font: can't open file: %s\n",fname); return NULL;}
 
 // set up some defaults, and erase table