common_test.c: sfree always sets ptr to NULL
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:59:27 +0000 (11:59 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:59:27 +0000 (11:59 +0200)
[src/daemon/common_test.c:93]: (style) Condition 'ptr==0' is always true

src/daemon/common_test.c

index ca8f15a..68958f3 100644 (file)
@@ -90,7 +90,6 @@ DEF_TEST(sstrdup)
   EXPECT_EQ_STR ("collectd", ptr);
 
   sfree(ptr);
-  OK(ptr == NULL);
 
   ptr = sstrdup (NULL);
   OK(ptr == NULL);