From d7f1942998f2140945ffdfadf0c48388cd7fb31c Mon Sep 17 00:00:00 2001 From: Lars Brinkhoff Date: Wed, 16 May 2018 00:07:27 -0700 Subject: [PATCH] display: Fix display type 340 bug. In the vector function, the flags variable wasn't initialized. The function can sometimes return boolean true even if it shouldn't. --- display/type340.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/display/type340.c b/display/type340.c index 8e657bbc..c4840bcf 100644 --- a/display/type340.c +++ b/display/type340.c @@ -453,7 +453,7 @@ vector(int i, int sy, int dy, int sx, int dx) { struct type340 *u = UNIT(0); int x0, y0, x1, y1; - int flags; + int flags = 0; DEBUGF(("v i%d y%c%d x%c%d\r\n", i, (sy ? '-' : '+'), dy,