From 3b46a035bb0653d58e2a3df48e615c79cccbb84d Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 7 Jul 2024 20:45:53 +0200 Subject: Initialization --- FICS/obsproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FICS/obsproc.c b/FICS/obsproc.c index 6a41e6c..43d0ace 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -948,8 +948,8 @@ PRIVATE char * FindHistory(int p, int p1, int game) { FILE *fpHist; - int index; - long int when; + int index = 0; + long int when = 0; static char fileName[MAX_FILENAME_SIZE]; msnprintf(fileName, sizeof fileName, "%s/player_data/%c/%s.%s", @@ -983,8 +983,8 @@ PRIVATE char * FindHistory2(int p, int p1, int game, char *End) { FILE *fpHist; - int index; - long int when; + int index = 0; + long int when = 0; static char fileName[MAX_FILENAME_SIZE]; msnprintf(fileName, sizeof fileName, "%s/player_data/%c/%s.%s", -- cgit v1.2.3