]> arthur.barton.de Git - netdata.git/commitdiff
prevent a crash when memory is set to save
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 3 Sep 2016 17:50:03 +0000 (20:50 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Sat, 3 Sep 2016 17:50:03 +0000 (20:50 +0300)
src/rrd.c

index 6be65c7fc8f115960da4a708907660da1923e48f..acb98021bebf295497819325584d3bd5405a11a6 100644 (file)
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -503,6 +503,7 @@ RRDSET *rrdset_create(const char *type, const char *id, const char *name, const
         st->next = NULL;
         st->mapped = rrd_memory_mode;
         st->variables = NULL;
+        st->alarms = NULL;
     }
     else {
         st = callocz(1, size);