diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-11-18 21:37:33 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-11-18 21:37:33 +0100 |
| commit | a80e33d2dae5ed84da5739d99dc30a0b51e5d085 (patch) | |
| tree | 56998750b12f87b6f3dfb05887c42d4bfc602415 /FICS/matchproc.c | |
| parent | 7cca2fca71ef729316028fb59775a4151cfa5f55 (diff) | |
Fixed warnings found by Coverity
Diffstat (limited to 'FICS/matchproc.c')
| -rw-r--r-- | FICS/matchproc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FICS/matchproc.c b/FICS/matchproc.c index 1b1eab8..7288bf0 100644 --- a/FICS/matchproc.c +++ b/FICS/matchproc.c @@ -991,7 +991,10 @@ com_match(int p, param_list param) } } else { ppend = pendto; - p1pend = player_find_pendfrom(p1, p, PEND_MATCH); + if ((p1pend = player_find_pendfrom(p1, p, PEND_MATCH)) < 0) { + pprintf(p, "Unable to find pending match\n"); + return COM_OK; + } } parray[p].p_to_list[ppend].param1 = wt; |
