aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--box-drawing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/box-drawing.c b/box-drawing.c
index 54a966a1..62716106 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -2771,7 +2771,7 @@ box_drawing(const struct terminal *term, wchar_t wc)
buf.x_halfs[0] = round(width / 2.); /* Endpoint first half */
buf.x_halfs[1] = width / 2; /* Startpoint second half */
- int y0, y1;
+ int y0 = 0, y1 = 0;
switch (height % 3) {
case 0:
y0 = height / 3;