diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:26:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:26:46 +0000 |
commit | d0b6d783aeb42b4972efba9f06e3a74e3a68295e (patch) | |
tree | 0086fdd24053305007874b4806f252ecd6308379 /src/health/rrdvar.h | |
parent | Adding upstream version 1.47.2. (diff) | |
download | netdata-d0b6d783aeb42b4972efba9f06e3a74e3a68295e.tar.xz netdata-d0b6d783aeb42b4972efba9f06e3a74e3a68295e.zip |
Adding upstream version 1.47.5.upstream/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); |