diff options
Diffstat (limited to 'FICS/utils.c')
-rw-r--r-- | FICS/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 4de322a..fd4e8a6 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -967,7 +967,8 @@ PRIVATE void t_sft(const char *want, struct t_tree *t) { if (t) { - int cmp = strncmp(want ? want : "", t->name, strlen(want)); + const char *v_want = (want ? want : ""); + int cmp = strncmp(v_want, t->name, strlen(v_want)); if (cmp <= 0) // If 'want' <= this one, look left t_sft(want, t->left); |