fix color init
authorLaurent MAZET <laurent.mazet@thalesgroup.com>
Fri, 24 May 2024 08:26:31 +0000 (10:26 +0200)
committerLaurent MAZET <laurent.mazet@thalesgroup.com>
Fri, 24 May 2024 08:26:31 +0000 (10:26 +0200)
board.c

diff --git a/board.c b/board.c
index b58c0c4f686553ae49fd11c403b7a6aed9a73afa..7db5f0045371e6de902370934d88e3effa586613 100644 (file)
--- a/board.c
+++ b/board.c
@@ -58,7 +58,7 @@ typedef enum {
 
 void set_color (color_t color)
 {
-    int init = 1;
+    static int init = 1;
 
     if (init) {
         init_pair (white, COLOR_WHITE, COLOR_BLACK);