Avoid uninitialized x in uiRead

master
Curtis McEnroe 2018-09-13 15:39:40 -04:00
parent 9a69869d39
commit 9ca6814933
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions

2
ui.c
View File

@ -502,7 +502,7 @@ void uiRead(void) {
formatReset(&format);
wmove(ui.input, 0, 0);
int _, x;
int _, x = 0;
while (formatParse(&format, editTail())) {
if (format.split) getyx(ui.input, _, x);
addFormat(ui.input, &format);