summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-13 15:39:40 -0400
committerJune McEnroe <june@causal.agency>2018-09-13 15:39:40 -0400
commit9ca68149337f49135c849b6c5dc85a541f30ae5a (patch)
tree67d04511344fc86078210ddf6b5cfb5ca6abad33
parentAdd IRCDefault to colors enum (diff)
downloadcatgirl-9ca68149337f49135c849b6c5dc85a541f30ae5a.tar.gz
catgirl-9ca68149337f49135c849b6c5dc85a541f30ae5a.zip
Avoid uninitialized x in uiRead
-rw-r--r--ui.c2
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);
shows.txt?id=4f405376ae6b5d46b37b7a7ada4e0dd70d08f652&follow=1'>FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe