From 4acbb356f1b03ce0dacf84d6a08742a73e427bad Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 11:59:27 +0200 Subject: [PATCH] common_test.c: sfree always sets ptr to NULL [src/daemon/common_test.c:93]: (style) Condition 'ptr==0' is always true --- src/daemon/common_test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/daemon/common_test.c b/src/daemon/common_test.c index ca8f15a3..68958f3f 100644 --- a/src/daemon/common_test.c +++ b/src/daemon/common_test.c @@ -90,7 +90,6 @@ DEF_TEST(sstrdup) EXPECT_EQ_STR ("collectd", ptr); sfree(ptr); - OK(ptr == NULL); ptr = sstrdup (NULL); OK(ptr == NULL); -- 2.30.2