In almost all cases where rrdc_flush can fail, it will leave a more
[rrdtool.git] / src / rrd_update.c
index 108dcbb..62c8c3b 100644 (file)
@@ -519,6 +519,7 @@ int _rrd_update(
         goto err_out;
     }
 
+    rrd_init(&rrd);
     if ((rrd_file = rrd_open(filename, &rrd, RRD_READWRITE)) == NULL) {
         goto err_free;
     }