diff options
author | Curtis McEnroe | 2018-09-13 15:39:40 -0400 |
---|---|---|
committer | Curtis McEnroe | 2018-09-13 15:39:40 -0400 |
commit | 9ca68149337f49135c849b6c5dc85a541f30ae5a (patch) | |
tree | 67d04511344fc86078210ddf6b5cfb5ca6abad33 /ui.c | |
parent | 9a69869d392ca9ac9e2d845dec5f4dfecdbf3456 (diff) |
Avoid uninitialized x in uiRead
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.c b/ui.c index 54f0492..12f7dc7 100644 --- a/ui.c +++ b/ui.c @@ -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); |