aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/comproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r--FICS/comproc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/FICS/comproc.c b/FICS/comproc.c
index 6e82040..ca04f22 100644
--- a/FICS/comproc.c
+++ b/FICS/comproc.c
@@ -37,6 +37,8 @@
plogins: fscanf:
added width specification
Markus Uhlin 25/03/08 Calc string length once
+ Markus Uhlin 25/03/11 Fixed possibly uninitialized
+ value 'rat' in who_terse().
*/
#include "stdinclude.h"
@@ -843,6 +845,8 @@ who_terse(int p, int num, int *plist, int type)
rat = parray[p1].s_stats.rating;
else if (type == light_rat)
rat = parray[p1].l_stats.rating;
+ else // Fallback to std...
+ rat = parray[p1].s_stats.rating;
if (type == none) {
strlcpy(ptmp, " ", sizeof ptmp);