font: Fix crash due to uninitialized field.
Change-Id: If2fafb15a9998eebb2936e819507758e003abe30
This commit is contained in:
parent
7ab237b025
commit
01b28ea725
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue