diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-11-26 23:59:17 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-11-26 23:59:17 +0100 |
| commit | 2ffe47dbae27450bc859a8df5f3b06ff0f50038f (patch) | |
| tree | 4085fe9a7396ec14b983df3ba730f68010ef3b17 /FICS/matchproc.c | |
| parent | fc4866383d1f002ca832dfce8f8abccf9d72bae5 (diff) | |
Fixed potentially uninitialized vars
Diffstat (limited to 'FICS/matchproc.c')
| -rw-r--r-- | FICS/matchproc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/matchproc.c b/FICS/matchproc.c index 7288bf0..36f6a4a 100644 --- a/FICS/matchproc.c +++ b/FICS/matchproc.c @@ -306,7 +306,7 @@ accept_match(int p, int p1) char board[50] = { '\0' }; char category[50] = { '\0' }; char tmp[100] = { '\0' }; - int bh = 0, pp, pp1; + int bh = 0, pp = 0, pp1 = 0; int g, adjourned, foo, which; int wt, winc, bt, binc, rated, white; pending *pend; @@ -633,7 +633,7 @@ com_match(int p, param_list param) char *colorstr[] = { "", "[black] ", "[white] " }; char *val; int adjourned; // adjourned game? - int bh = 0, pp, pp1; + int bh = 0, pp = 0, pp1 = 0; int binc = -1; // black increment int bt = -1; // black start time int confused = 0; @@ -642,7 +642,7 @@ com_match(int p, param_list param) int pendfrom, pendto; int ppend, p1pend; int rated = -1; // 1 = rated, 0 = unrated - int type; + int type = TYPE_UNTIMED; int white = -1; // 1 = want white, 0 = want black int winc = -1; // white increment int wt = -1; // white start time |
