From e8db5f4629d464ddd7fd2122f5c763d28346b6de Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 26 Jun 2012 22:41:16 +0000 Subject: [PATCH] figfont: fix uninitialised data access. --- caca/figfont.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/caca/figfont.c b/caca/figfont.c index 7860026..a7a6249 100644 --- a/caca/figfont.c +++ b/caca/figfont.c @@ -468,6 +468,11 @@ static caca_charfont_t * open_charfont(char const *path) return NULL; } + /* Remaining initialisation */ + ff->charcv = NULL; + ff->left = NULL; + ff->right = NULL; + /* Import buffer into canvas */ ff->fontcv = caca_create_canvas(0, 0); caca_import_canvas_from_memory(ff->fontcv, data, i, "utf8");