summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4bb98e5)
raw | patch | inline | side by side (parent: 4bb98e5)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:57:25 +0000 (11:57 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:57:25 +0000 (11:57 +0200) |
[src/daemon/plugin.c:2095] -> [src/daemon/plugin.c:2091]: (warning) Either the condition 'vl==0' is redundant or there is possible null pointer dereference: vl.
src/daemon/plugin.c | patch | blob | history |
diff --git a/src/daemon/plugin.c b/src/daemon/plugin.c
index 7e905f97456cae24e65950db0055e48a9b80ea6d..fa78fa024af63ab9698411175acc45699b8b0f11 100644 (file)
--- a/src/daemon/plugin.c
+++ b/src/daemon/plugin.c
int free_meta_data = 0;
- if ((vl == NULL) || (vl->type[0] == 0)
- || (vl->values == NULL) || (vl->values_len < 1))
+ assert(vl);
+ assert(vl->plugin);
+
+ if (vl->type[0] == 0 || vl->values == NULL || vl->values_len < 1)
{
ERROR ("plugin_dispatch_values: Invalid value list "
"from plugin %s.", vl->plugin);