render: ensure ‘cell_cols’ have been initialized

This commit is contained in:
Daniel Eklöf 2021-05-31 17:50:49 +02:00
parent 50be924285
commit b471fe31b1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -507,7 +507,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
unsigned glyph_count = 0;
wchar_t base = cell->wc;
int cell_cols;
int cell_cols = 1;
if (base != 0) {
if (unlikely(