aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-02 02:34:42 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-02 02:34:42 +0200
commit09609a5bca118a1d46d3cb3f6104eefc161e64f8 (patch)
treef725fec28aee93e477e343891474a785f8d7ee42
parentea84b6a14d3ec90e44f11859f99833b4db10516f (diff)
Null check
-rw-r--r--FICS/ratings.c2
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')