projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
only include utime.h when necessary
[rrdtool.git]
/
src
/
rrd_lastupdate.c
diff --git
a/src/rrd_lastupdate.c
b/src/rrd_lastupdate.c
index
62e3b8b
..
1546f6a
100644
(file)
--- a/
src/rrd_lastupdate.c
+++ b/
src/rrd_lastupdate.c
@@
-99,6
+99,7
@@
int rrd_lastupdate_r(const char *filename,
rrd_t rrd;
rrd_file_t *rrd_file;
rrd_t rrd;
rrd_file_t *rrd_file;
+ rrd_init(&rrd);
rrd_file = rrd_open(filename, &rrd, RRD_READONLY);
if (rrd_file == NULL) {
rrd_free(&rrd);
rrd_file = rrd_open(filename, &rrd, RRD_READONLY);
if (rrd_file == NULL) {
rrd_free(&rrd);