aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-02-22 16:54:38 +0100
committerChristian Hesse <mail@eworm.de>2016-02-22 16:54:38 +0100
commitef41f09cdd006f22eddab1849ce5a057e00dc065 (patch)
treeba0c6432c274afa6309866c3fd12c8c702258c57 /view.c
parent00700db30bb89dd89ae7a6558c94fe72c6f16343 (diff)
downloadvis-ef41f09cdd006f22eddab1849ce5a057e00dc065.tar.gz
vis-ef41f09cdd006f22eddab1849ce5a057e00dc065.tar.xz
initized variables
Diffstat (limited to 'view.c')
-rw-r--r--view.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/view.c b/view.c
index 80c472e..7f47f1a 100644
--- a/view.c
+++ b/view.c
@@ -635,8 +635,8 @@ void view_update(View *view) {
if (view->colorcolumn > 0) {
size_t lineno = 0;
- int line_cols; /* Track the number of columns we've passed on each line */
- bool line_cc_set; /* Has the colorcolumn attribute been set for this line yet */
+ int line_cols = 0; /* Track the number of columns we've passed on each line */
+ bool line_cc_set = false; /* Has the colorcolumn attribute been set for this line yet */
for (Line *l = view->topline; l; l = l->next) {
if (l->lineno != lineno) {