summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 72c7085b7a..6f5156cc73 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -125,8 +125,6 @@ struct font* font_load(char *path)
125 char copyright[256+1]; 125 char copyright[256+1];
126 struct font* pf = &font_ui; 126 struct font* pf = &font_ui;
127 127
128 memset(pf, 0, sizeof(struct font));
129
130 /* open and read entire font file*/ 128 /* open and read entire font file*/
131 fd = open(path, O_RDONLY|O_BINARY); 129 fd = open(path, O_RDONLY|O_BINARY);
132 if (fd < 0) { 130 if (fd < 0) {
@@ -134,6 +132,8 @@ struct font* font_load(char *path)
134 return NULL; 132 return NULL;
135 } 133 }
136 134
135 memset(pf, 0, sizeof(struct font));
136
137 /* currently, font loading replaces earlier font allocation*/ 137 /* currently, font loading replaces earlier font allocation*/
138 freeptr = (unsigned char *)(((int)mbuf + 3) & ~3); 138 freeptr = (unsigned char *)(((int)mbuf + 3) & ~3);
139 139