summaryrefslogtreecommitdiffstats
path: root/libnetdata/health/health.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetdata/health/health.c')
-rw-r--r--libnetdata/health/health.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/health/health.c b/libnetdata/health/health.c
index a70f284b1..e03538db3 100644
--- a/libnetdata/health/health.c
+++ b/libnetdata/health/health.c
@@ -112,7 +112,7 @@ int health_silencers_json_read_callback(JSON_ENTRY *e)
case JSON_OBJECT:
#ifndef ENABLE_JSONC
e->callback_function = health_silencers_json_read_callback;
- if(e->name && strcmp(e->name,"")) {
+ if(strcmp(e->name,"")) {
// init silencer
debug(D_HEALTH, "JSON: Got object with a name, initializing new silencer for %s",e->name);
#endif