aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-07 20:45:53 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-07 20:45:53 +0200
commit3b46a035bb0653d58e2a3df48e615c79cccbb84d (patch)
treeeb09835d7a7c7b53e625ce65d091b982473a8964
parentf101f95a706f8aca396a60e633d870655f77236e (diff)
Initialization
-rw-r--r--FICS/obsproc.c8
1 files 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",