From 2946e0dc56679eaf9bec7fa628896c5470fb6047 Mon Sep 17 00:00:00 2001 From: jfreegman Date: Fri, 10 Dec 2021 13:09:47 -0500 Subject: [PATCH] Zero-init coordinates Not strictly necessary, but makes static analysis happy --- src/game_chess.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/game_chess.c b/src/game_chess.c index b83a36b..d530bfa 100644 --- a/src/game_chess.c +++ b/src/game_chess.c @@ -436,7 +436,11 @@ static bool chess_path_line_clear(Board *board, const Tile *from, const Tile *to return false; } - ChessCoords chess_coords; + ChessCoords chess_coords = (ChessCoords) { + 0, + 0 + }; + size_t start; size_t end;