mg

port of mg editor (openbsd to linux)
Log | Files | Refs | README

commit e661761675897a7534d3efa9f523fba63b294620
parent b9f4849a14c2801929ea9ea72df14c0ab2f038ca
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 24 Nov 2014 20:54:49 +0100

fix uninitialized variable warning

Diffstat:
display.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/display.c b/display.c @@ -808,8 +808,8 @@ modeline(struct mgwin *wp, int modelinecolor) { int n, md; struct buffer *bp; - char sl[21]; /* Overkill. Space for 2^64 in base 10. */ - int len; + char sl[21] = ""; /* Overkill. Space for 2^64 in base 10. */ + int len = 0; n = wp->w_toprow + wp->w_ntrows; /* Location. */ vscreen[n]->v_color = modelinecolor; /* Mode line color. */