mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: make compiler happy; make sure 'cell_count' has been initialized
Compiler, in release builds, complains about 'cell_count' "may be used uninitialized". This isn't true, as it is initialized in every possible switch case below. But, make the compiler happy and zero-initialize it before the switch statement.
This commit is contained in:
parent
d361951dd5
commit
c1653c7237
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -1360,7 +1360,7 @@ render_scrollback_position(struct terminal *term)
|
|||
|
||||
wchar_t _text[64];
|
||||
const wchar_t *text = _text;
|
||||
int cell_count;
|
||||
int cell_count = 0;
|
||||
|
||||
/* *What* to render */
|
||||
switch (term->conf->scrollback.indicator.format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue