Avoid uninitialized x in uiRead
parent
9a69869d39
commit
9ca6814933
2
ui.c
2
ui.c
|
@ -502,7 +502,7 @@ void uiRead(void) {
|
||||||
formatReset(&format);
|
formatReset(&format);
|
||||||
wmove(ui.input, 0, 0);
|
wmove(ui.input, 0, 0);
|
||||||
|
|
||||||
int _, x;
|
int _, x = 0;
|
||||||
while (formatParse(&format, editTail())) {
|
while (formatParse(&format, editTail())) {
|
||||||
if (format.split) getyx(ui.input, _, x);
|
if (format.split) getyx(ui.input, _, x);
|
||||||
addFormat(ui.input, &format);
|
addFormat(ui.input, &format);
|
||||||
|
|
Loading…
Reference in New Issue