summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-03-11 06:55:57 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-03-11 06:55:57 +0000
commit746279f1e389cf221d7b62b73e3a084f593e1e3c (patch)
treee60eac6dc60bcb3f0ffa5f4fa0cccf7c53a00a2e /usr.bin
parentc7609c72cac3f734b6c209a1a452df39ab80bec6 (diff)
Silence uninitialized variable warning.
ok miod, otto
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vi/vi/vs_refresh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vi/vi/vs_refresh.c b/usr.bin/vi/vi/vs_refresh.c
index b3d557ebb2e..1119072c27f 100644
--- a/usr.bin/vi/vi/vs_refresh.c
+++ b/usr.bin/vi/vi/vs_refresh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vs_refresh.c,v 1.12 2006/03/04 16:18:06 miod Exp $ */
+/* $OpenBSD: vs_refresh.c,v 1.13 2006/03/11 06:55:56 ray Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -171,7 +171,7 @@ vs_paint(sp, flags)
VI_PRIVATE *vip;
recno_t lastline, lcnt;
size_t cwtotal, cnt, len, notused, off, y;
- int ch, didpaint, isempty, leftright_warp;
+ int ch = 0, didpaint, isempty, leftright_warp;
char *p;
#define LNO sp->lno /* Current file line. */