Skip to content
Myr

render: fix "error: 'prev' may be used uninitialized"

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent f6543d6 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:render.c+1 added-1 removed
289 unmodified lines
290 }291292 const struct fcft_glyph **glyphs = malloc(chars * sizeof(glyphs[0]));293 long *x_kern = malloc(chars * sizeof(x_kern[0]));294 char32_t prev;294 char32_t prev = 0;295296 width = 0;297 for (size_t i = 0; i < (size_t)chars; i++) {298 x_kern[i] = 0;
990 unmodified lines