From 8aac4b5d8b4f4ebee675d21efe0fdcbe6fe8a3cd Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 27 Jul 2014 13:49:25 +0000 Subject: [PATCH 5/5] fix uninitialized variables --- sandy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sandy.c b/sandy.c index 0efe201..d08b683 100644 --- a/sandy.c +++ b/sandy.c @@ -1755,10 +1755,10 @@ i_termwininit(void) { void i_update(void) { int iline, irow, ixrow, ivchar, i, ifg, ibg, vlines; - size_t ichar; - int cursor_r, cursor_c; + int cursor_r = 0, cursor_c = 0; int lines3; /* How many lines fit on screen */ - long int nscr, ncur, nlst; /* Line number for scrline, fcur.l and lstline */ + long int nscr, ncur = 1, nlst = 1; /* Line number for scrline, fcur.l and lstline */ + size_t ichar; bool selection; regmatch_t match[SYN_COLORS][1]; Line *l; -- 2.0.2