projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27cdc98
)
common_test.c: sfree always sets ptr to NULL
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:59:27 +0000
(11:59 +0200)
committer
Ruben 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
patch
|
blob
|
history
diff --git
a/src/daemon/common_test.c
b/src/daemon/common_test.c
index
ca8f15a
..
68958f3
100644
(file)
--- 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);