aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/utils.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-25 19:23:57 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-25 19:23:57 +0100
commit47555e9becc2057858d5809974588100f2dd0432 (patch)
tree3234d474e3742f6b473ca5524866088699c849ec /FICS/utils.c
parentaac8f7ee700c850e64508b982d6ca3952f54f3fb (diff)
Null checking
Diffstat (limited to 'FICS/utils.c')
-rw-r--r--FICS/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 0fe458e..f227c50 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -948,7 +948,7 @@ t_sft(char *want, struct t_tree *t)
PRIVATE void
t_cft(struct t_tree **t)
{
- if (*t) {
+ if (t != NULL && *t != NULL) {
t_cft(&(*t)->left);
t_cft(&(*t)->right);
rfree(*t);