diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:26:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:26:49 +0000 |
commit | 557d39be2a575c8a340ead48af2fc6e709d52a00 (patch) | |
tree | 5f0b3a62a1a0ff8eedf21d5f06ffab03dfac2785 /src/health/rrdvar.h | |
parent | Releasing debian version 1.47.2-1. (diff) | |
download | netdata-557d39be2a575c8a340ead48af2fc6e709d52a00.tar.xz netdata-557d39be2a575c8a340ead48af2fc6e709d52a00.zip |
Merging upstream version 1.47.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/health/rrdvar.h')
-rw-r--r-- | src/health/rrdvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/health/rrdvar.h b/src/health/rrdvar.h index 31530589d..3297984cb 100644 --- a/src/health/rrdvar.h +++ b/src/health/rrdvar.h @@ -19,7 +19,7 @@ void rrdvar_host_variable_set(RRDHOST *host, const RRDVAR_ACQUIRED *rva, NETDATA int rrdvar_walkthrough_read(DICTIONARY *dict, int (*callback)(const DICTIONARY_ITEM *item, void *rrdvar, void *data), void *data); #define rrdvar_host_variable_release(host, rva) rrdvar_release((host)->rrdvars, rva) -#define rrdvar_chart_variable_release(st, rva) rrdvar_release((st)->rrdvars, rva) +#define rrdvar_chart_variable_release(st, rva) do { if(st) rrdvar_release((st)->rrdvars, rva); } while(0) void rrdvar_release(DICTIONARY *dict, const RRDVAR_ACQUIRED *rva); NETDATA_DOUBLE rrdvar2number(const RRDVAR_ACQUIRED *rva); |