From: Ruben Kerkhof Date: Sat, 23 Apr 2016 09:59:27 +0000 (+0200) Subject: common_test.c: sfree always sets ptr to NULL X-Git-Tag: collectd-5.6.0~329^2~12 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4acbb356f1b03ce0dacf84d6a08742a73e427bad;p=collectd.git common_test.c: sfree always sets ptr to NULL [src/daemon/common_test.c:93]: (style) Condition 'ptr==0' is always true --- 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);