Browse Source

figfont: fix uninitialised data access.

tags/v0.99.beta19
Sam Hocevar sam 12 years ago
parent
commit
e8db5f4629
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      caca/figfont.c

+ 5
- 0
caca/figfont.c View File

@@ -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");


Loading…
Cancel
Save