projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5238e7
)
memcachec plugin: prev can't be NULL here
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:39:47 +0000
(11:39 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 09:39:47 +0000
(11:39 +0200)
[src/memcachec.c:392] -> [src/memcachec.c:390]: (warning) Either the condition 'prev!=0' is redundant or there is possible null pointer dereference: prev.
src/memcachec.c
patch
|
blob
|
history
diff --git
a/src/memcachec.c
b/src/memcachec.c
index
1e1d42d
..
629b99b
100644
(file)
--- a/
src/memcachec.c
+++ b/
src/memcachec.c
@@
-387,7
+387,7
@@
static int cmc_config_add_page (oconfig_item_t *ci) /* {{{ */
web_page_t *prev;
prev = pages_g;
- while (
(prev != NULL) && (prev->next != NULL)
)
+ while (
prev->next != NULL
)
prev = prev->next;
prev->next = page;
}