summaryrefslogtreecommitdiffstats
path: root/firmware/font.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-16 10:18:16 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-16 10:21:18 +0100
commit01b28ea725a040bd02690ece0726779d5ef83d65 (patch)
tree89b745242a6ce66bde2bd3615103b604f173a3b8 /firmware/font.c
parent7ab237b025cbb4c25d345604da32e894379c1721 (diff)
downloadrockbox-01b28ea725a040bd02690ece0726779d5ef83d65.tar.gz
rockbox-01b28ea725a040bd02690ece0726779d5ef83d65.tar.bz2
rockbox-01b28ea725a040bd02690ece0726779d5ef83d65.zip
font: Fix crash due to uninitialized field.
Change-Id: If2fafb15a9998eebb2936e819507758e003abe30
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c3
1 files changed, 2 insertions, 1 deletions
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;