summaryrefslogtreecommitdiffstats
path: root/src/health/rrdvar.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:26:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 08:26:46 +0000
commitd0b6d783aeb42b4972efba9f06e3a74e3a68295e (patch)
tree0086fdd24053305007874b4806f252ecd6308379 /src/health/rrdvar.h
parentAdding upstream version 1.47.2. (diff)
downloadnetdata-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.h2
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);