projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9f0a65
)
curl plugin: prev can't be NULL here
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:08:13 +0000
(12:08 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:08:13 +0000
(12:08 +0200)
[src/curl.c:548] -> [src/curl.c:546]: (warning) Either the condition 'prev!=0' is redundant or there is possible null pointer dereference: prev.
src/curl.c
patch
|
blob
|
history
diff --git
a/src/curl.c
b/src/curl.c
index
2ed0922
..
310561c
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-543,7
+543,7
@@
static int cc_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;
}