From 01b28ea725a040bd02690ece0726779d5ef83d65 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 16 Jan 2014 10:18:16 +0100 Subject: font: Fix crash due to uninitialized field. Change-Id: If2fafb15a9998eebb2936e819507758e003abe30 --- firmware/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/font.c b/firmware/font.c index 723c972e3b..3b7e714771 100644 --- a/firmware/font.c +++ b/firmware/font.c @@ -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; -- cgit v1.2.3