diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-20 01:51:01 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-07-20 01:51:01 +0000 |
commit | e34af51711b2dfb568764a723bdb5593025a5636 (patch) | |
tree | ac304b604438f013963f0211587aef15fb7cc2c8 /libvo | |
parent | a2206b10b589c020db8127028dab8568224fcf3b (diff) | |
download | mpv-e34af51711b2dfb568764a723bdb5593025a5636.tar.bz2 mpv-e34af51711b2dfb568764a723bdb5593025a5636.tar.xz |
crash fixed if no [fontpath] in .desc
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1358 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/font_load.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/font_load.c b/libvo/font_load.c index ed7463d945..9218c1172b 100644 --- a/libvo/font_load.c +++ b/libvo/font_load.c @@ -51,6 +51,8 @@ int version=0; 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 |