diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2020-05-26 15:58:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 15:58:34 +0300 |
commit | 1ba6cedc8f538840dec2448f040c61b5c30c8594 (patch) | |
tree | 25845e37e2adc2b555661fcc5c62e40b148201c0 /collectors/plugins.d | |
parent | 605705a164e2ef562b7b309cf5607918978bc039 (diff) |
Fixed coverity warning (CID 358971) (#9157)
Fixed coverity warning (CID 358971)
Diffstat (limited to 'collectors/plugins.d')
-rw-r--r-- | collectors/plugins.d/pluginsd_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/plugins.d/pluginsd_parser.c b/collectors/plugins.d/pluginsd_parser.c index aaf95dc789..19a73e859e 100644 --- a/collectors/plugins.d/pluginsd_parser.c +++ b/collectors/plugins.d/pluginsd_parser.c @@ -297,7 +297,7 @@ PARSER_RC pluginsd_chart(char **words, void *user, PLUGINSD_ACTION *plugins_act } // make sure we have the required variables - if (unlikely((!type || !*type || !id || !*id) && !have_action)) { + if (unlikely((!type || !*type || !id || !*id))) { error("requested a CHART, without a type.id, on host '%s'. Disabling it.", host->hostname); ((PARSER_USER_OBJECT *) user)->enabled = 0; return PARSER_RC_ERROR; |