diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-04-02 02:34:42 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-04-02 02:34:42 +0200 |
commit | 09609a5bca118a1d46d3cb3f6104eefc161e64f8 (patch) | |
tree | f725fec28aee93e477e343891474a785f8d7ee42 /FICS | |
parent | ea84b6a14d3ec90e44f11859f99833b4db10516f (diff) |
Null check
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/ratings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c index 1cebfd4..4ab7d9d 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1499,7 +1499,7 @@ DisplayRankedPlayers(int p, int start, int end, int show, int showComp) PUBLIC int ShowFromString(char *s) { - int len = strlen(s); + int len = strlen(s ? s : ""); int show = 0; if (s == NULL || s[0] == '\0') |