sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit e73326c64a792cd4582a3833c3537be4906fe52a
parent 224751025558c4bab5666deddc86d11f315d215a
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 27 Jul 2014 13:49:25 +0000

fix uninitialized variables

Diffstat:
sandy.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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;