aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 53d233b..15a0081 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -967,7 +967,7 @@ PRIVATE void
t_sft(const char *want, struct t_tree *t)
{
if (t) {
- int cmp = strncmp(want, t->name, strlen(want));
+ int cmp = strncmp(want ? want : "", t->name, strlen(want));
if (cmp <= 0) // If 'want' <= this one, look left
t_sft(want, t->left);