diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-29 05:25:56 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-29 05:25:56 +0000 |
| commit | c1653c7237a995cb2beacb5f9ce285979f597dc4 (patch) | |
| tree | cef08e33e9048945f98623384306def2623bbb34 | |
| parent | changelog: scrollback indicator is a *new* feataure (diff) | |
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.
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
