diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2025-03-11 23:28:20 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2025-03-11 23:28:20 +0100 |
commit | 54620f87f46f6ca7bf842e2a510508dc4ca80190 (patch) | |
tree | e6b6e70da27a8ed580aa0cf5d8488555e34e5733 /FICS/comproc.c | |
parent | 60cecb5bedbbb37f14cf326d33a91cfbfbc430e6 (diff) |
who_terse: fixed possibly uninitialized value 'rat'
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r-- | FICS/comproc.c | 4 |
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); |