diff options
author | Vladimir Kobal <vlad@prokk.net> | 2022-05-24 14:41:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 13:41:04 +0200 |
commit | 3766c410f83a593c54eedc8f726b0ab9daed4b1a (patch) | |
tree | 700b30581f9a074177aeec665ce202e7d7d09230 /libnetdata | |
parent | 546010acad2fd18bf3fd463f53ec7cc4ead1ea5f (diff) |
Fix compilation warnings (#12993)
Diffstat (limited to 'libnetdata')
-rw-r--r-- | libnetdata/worker_utilization/worker_utilization.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/worker_utilization/worker_utilization.c b/libnetdata/worker_utilization/worker_utilization.c index 992852e91d..bd3ad60e09 100644 --- a/libnetdata/worker_utilization/worker_utilization.c +++ b/libnetdata/worker_utilization/worker_utilization.c @@ -69,7 +69,7 @@ void worker_register_job_name(size_t job_id, const char *name) { error("WORKER_UTILIZATION: job_id %zu is too big. Max is %zu", job_id, (size_t)(WORKER_UTILIZATION_MAX_JOB_TYPES - 1)); return; } - if (worker->per_job_type[job_id].name && *worker->per_job_type[job_id].name) { + if (*worker->per_job_type[job_id].name) { error("WORKER_UTILIZATION: duplicate job registration: worker '%s' job id %zu is '%s', ignoring '%s'", worker->workname, job_id, worker->per_job_type[job_id].name, name); return; } |