Code

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 ca8f15a35fd793d9799016ae594d2544ad5b67d7..68958f3f15271db5b66c64dd189e12e2f1c50073 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);