From fb4a84a4c678277646bd1873f1d75abd6b527ab7 Mon Sep 17 00:00:00 2001 From: Joe Loughry Date: Sun, 17 Feb 2019 14:36:35 -0700 Subject: [PATCH] vi: fix two compiler warnings on clang ver. 1000.11.45.5 --- vi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vi.c b/vi.c index f6b84c3..fa9733f 100644 --- a/vi.c +++ b/vi.c @@ -72,7 +72,7 @@ static void vi_drawagain(int xcol, int lineonly) /* update the screen */ static void vi_drawupdate(int xcol, int otop) { - int i; + int i = 0; if (otop != xtop) { term_record(); term_pos(0, 0); @@ -1302,7 +1302,7 @@ static void vi(void) } cmd = term_cmd(&n); if (strchr("!<>ACDIJOPRSXYacdioprsxy~", c) || - c == 'g' && strchr("uU~", k)) { + (c == 'g' && strchr("uU~", k))) { if (n < sizeof(rep_cmd)) { memcpy(rep_cmd, cmd, n); rep_len = n; -- 2.11.4.GIT