font: Fix crash due to uninitialized field.

Change-Id: If2fafb15a9998eebb2936e819507758e003abe30
This commit is contained in:
Thomas Martitz 2014-01-16 10:18:16 +01:00
parent 7ab237b025
commit 01b28ea725

View file

@ -526,9 +526,10 @@ int font_load_ex( const char *path, size_t buf_size, int glyphs )
pdata = core_get_data(handle);
pdata->handle_locks = 1;
pdata->refcount = 1;
pdata->disabled = false;
/* load and init */
struct font *pf = pf_from_handle( handle );
struct font *pf = &pdata->pf;
memcpy(pf, &f, sizeof( struct font) );
pf->fd = fd;