X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_first.c;h=4fb4a4ef10c08e670d521fb193c12d91de9ef597;hb=591bd42a2c2ef80a7e1753e00001ea0633978660;hp=07c5a447874fa1b1ce22f93b3b4347908ae2a990;hpb=219fd9224e3117dcf59df8818d4e9e3eab26022a;p=rrdtool.git diff --git a/src/rrd_first.c b/src/rrd_first.c index 07c5a44..4fb4a4e 100644 --- a/src/rrd_first.c +++ b/src/rrd_first.c @@ -6,6 +6,7 @@ * Initial version by Burton Strauss, ntopSupport.com - 3/2005 *****************************************************************************/ +#include #include "rrd_tool.h" @@ -65,6 +66,7 @@ time_t rrd_first_r( rrd_t rrd; rrd_file_t *rrd_file; + rrd_init(&rrd); rrd_file = rrd_open(filename, &rrd, RRD_READONLY); if (rrd_file == NULL) { goto err_free;