From e363b941bb4c0a80021f1b041e987fc749732522 Mon Sep 17 00:00:00 2001 From: Filippo Maria Castelli Date: Mon, 15 Aug 2022 13:08:40 +0200 Subject: [PATCH] Revert "Remove useless global init" This reverts commit 1dd74052447a2c81ad86c7a46b2685152ebefc7b and fixes startup crashes. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index d5fb84d..af5948a 100644 --- a/src/main.c +++ b/src/main.c @@ -50,7 +50,7 @@ DRAWENV draw[2]; u_long otdisc[2][OT2LEN] = {0}; // Main OT u_long ot[2][OTLEN] = {0}; // Ordering table (contains addresses to primitives) -char primbuff[2][PRIMBUFFLEN]; // Primitive list // That's our prim buffer +char primbuff[2][PRIMBUFFLEN] = {0}; // Primitive list // That's our prim buffer int primcnt=0; // Primitive counter char * nextpri = primbuff[0]; // Primitive counter char db = 0; // Current buffer counter -- 2.39.5