Mercurial > mplayer.hg
diff libvo/font_load.c @ 1357:aa6f00037df1
crash fixed if no [fontpath] in .desc
author | arpi |
---|---|
date | Fri, 20 Jul 2001 01:51:01 +0000 |
parents | c3e3b0ae4d06 |
children | e0188a73c02a |
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