diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 19:23:57 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 19:23:57 +0100 |
commit | 47555e9becc2057858d5809974588100f2dd0432 (patch) | |
tree | 3234d474e3742f6b473ca5524866088699c849ec | |
parent | aac8f7ee700c850e64508b982d6ca3952f54f3fb (diff) |
Null checking
-rw-r--r-- | FICS/utils.c | 2 |
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); |