summaryrefslogtreecommitdiff
path: root/lib/splay.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-12-25 21:41:14 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-12-27 23:39:26 +0100
commit21248e052dbd0db33e8999aeeb919fb6f32c9567 (patch)
tree3345ae3b11c349ea56a58a387083fece2673e60c /lib/splay.c
parentacaa79f961a6fd4cde83ea16b5fb85f0a32c7f23 (diff)
downloadcurl-21248e052dbd0db33e8999aeeb919fb6f32c9567.tar.gz
checksrc: detect more kinds of NULL comparisons we avoid
Co-authored-by: Jay Satiro Closes #8180
Diffstat (limited to 'lib/splay.c')
-rw-r--r--lib/splay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/splay.c b/lib/splay.c
index 1c1dafb92..bcc079521 100644
--- a/lib/splay.c
+++ b/lib/splay.c
@@ -107,7 +107,7 @@ struct Curl_tree *Curl_splayinsert(struct curltime i,
if(!node)
return t;
- if(t != NULL) {
+ if(t) {
t = Curl_splay(i, t);
if(compare(i, t->key) == 0) {
/* There already exists a node in the tree with the very same key. Build