Fixed coverity warning (CID 358971) (#9157)
Fixed coverity warning (CID 358971)
Stelios Fragkakis committed
May 26, 2020 at 15:58 UTC
1ba6cedc8f538840dec2448f040c61b5c30c8594
1 file changed
+1
-1
collectors/plugins.d/pluginsd_parser.c
+1
-1
@@ -297,7 +297,7 @@ PARSER_RC pluginsd_chart(char **words, void *user, PLUGINSD_ACTION *plugins_act
297
}
298
299
// make sure we have the required variables
300
- if (unlikely((!type || !*type || !id || !*id) && !have_action)) {
300
+ if (unlikely((!type || !*type || !id || !*id))) {
301
error("requested a CHART, without a type.id, on host '%s'. Disabling it.", host->hostname);
302
((PARSER_USER_OBJECT *) user)->enabled = 0;
303
return PARSER_RC_ERROR;